sigwait.c build failed

Yoshinori Sato ysato at
Sun Jan 10 00:08:54 UTC 2010

I get follow messages. (in not defined __UCLIBC_HAS_REALTIME__)

  CC libc/signal/sigwait.o
libc/signal/sigwait.c:40:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'was_sig'
libc/signal/sigwait.c: In function 'ignore_signal':
libc/signal/sigwait.c:44:2: error: 'was_sig' undeclared (first use in this function)
libc/signal/sigwait.c:44:2: error: (Each undeclared identifier is reported only once
libc/signal/sigwait.c:44:2: error: for each function it appears in.)
libc/signal/sigwait.c: In function 'sigwait':
libc/signal/sigwait.c:65:3: error: 'was_sig' undeclared (first use in this function)
libc/signal/sigwait.c:96:1: warning: control reaches end of non-void function

Signed-off-by: Yoshinori Sato <ysato at>
 libc/signal/sigwait.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libc/signal/sigwait.c b/libc/signal/sigwait.c
index 6bca1b1..d0421f3 100644
--- a/libc/signal/sigwait.c
+++ b/libc/signal/sigwait.c
@@ -21,6 +21,7 @@
 #include <errno.h>
 #include <signal.h>
 #include <string.h>
+#include <unistd.h>
 #if defined __UCLIBC_HAS_REALTIME__

Yoshinori Sato
<ysato at>

More information about the uClibc mailing list