This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] sparc: fix for missing include file
- From: David Miller <davem at davemloft dot net>
- To: wbx at openadk dot org
- Cc: libc-alpha at sourceware dot org
- Date: Sat, 13 Sep 2014 17:38:26 -0400 (EDT)
- Subject: Re: [PATCH] sparc: fix for missing include file
- Authentication-results: sourceware.org; auth=none
- References: <20140913113918 dot GA22732 at waldemar-brodkorb dot de>
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Sat, 13 Sep 2014 13:39:19 +0200
> Fix idea from Roland McGrath <roland@hack.frob.com>
> Fixes following compile error targeting sparc32 v8
>
> ../sysdeps/sparc/sparc32/sem_trywait.c: In function '__new_sem_trywait':
> ../sysdeps/sparc/sparc32/sem_trywait.c:35:11: error: dereferencing
> pointer to incomplete type
> if (isem->value > 0)
> ^
> In file included from ../include/list.h:45:0,
> from ../sysdeps/sparc/nptl/tls.h:28,
> from ../include/errno.h:27,
> from ../sysdeps/sparc/sparc32/sem_trywait.c:20:
> ../sysdeps/sparc/sparc32/sem_trywait.c:38:43: error: dereferencing
> pointer to incomplete type
> val = atomic_decrement_if_positive (&isem->value);
> ^
> ../include/atomic.h:372:18: note: in definition of macro
>
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
This is fine, thanks for fixing this.