[PATCH] sparc: fix for missing include file

David Miller davem@davemloft.net
Sat Sep 13 21:38:00 GMT 2014


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.



More information about the Libc-alpha mailing list