pthread_sigmask: ensure usleep is declared
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Jul 2011 09:01:17 +0000 (02:01 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Jul 2011 09:01:40 +0000 (02:01 -0700)
* lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
Include <unistd.h>, to declare usleep.  Needed on Solaris 8,

ChangeLog
lib/pthread_sigmask.c

index 6dbe404..a521e9b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       pthread_sigmask: ensure usleep is declared
+       * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
+       Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
+
 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
 
        doc: Document NonStop portability issues.
index 349f7ad..11d549c 100644 (file)
 #include <errno.h>
 #include <stddef.h>
 
+#if PTHREAD_SIGMASK_UNBLOCK_BUG
+# include <unistd.h>
+#endif
+
 int
 pthread_sigmask (int how, const sigset_t *new_mask, sigset_t *old_mask)
 #undef pthread_sigmask