From: Paul Eggert Date: Sat, 16 Jul 2011 09:01:17 +0000 (-0700) Subject: pthread_sigmask: ensure usleep is declared X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cf71a8c15b38ca98e8b6aef03fe64dfbba51492;p=pspp pthread_sigmask: ensure usleep is declared * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]: Include , to declare usleep. Needed on Solaris 8, --- diff --git a/ChangeLog b/ChangeLog index 6dbe404bac..a521e9b2bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-07-16 Paul Eggert + + pthread_sigmask: ensure usleep is declared + * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]: + Include , to declare usleep. Needed on Solaris 8, + 2011-07-15 Paul Eggert doc: Document NonStop portability issues. diff --git a/lib/pthread_sigmask.c b/lib/pthread_sigmask.c index 349f7ad5c2..11d549cad4 100644 --- a/lib/pthread_sigmask.c +++ b/lib/pthread_sigmask.c @@ -22,6 +22,10 @@ #include #include +#if PTHREAD_SIGMASK_UNBLOCK_BUG +# include +#endif + int pthread_sigmask (int how, const sigset_t *new_mask, sigset_t *old_mask) #undef pthread_sigmask