This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] sparc: fix for missing include file


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]