pthread_sigmask: Ensure declaration in <signal.h> also on Solaris 2.6.
authorBruno Haible <bruno@clisp.org>
Fri, 8 Jul 2011 01:38:33 +0000 (03:38 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 8 Jul 2011 01:38:33 +0000 (03:38 +0200)
ChangeLog
doc/posix-functions/pthread_sigmask.texi
lib/signal.in.h

index 8653136..581b066 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,8 @@
 2011-07-07  Bruno Haible  <bruno@clisp.org>
 
        pthread_sigmask: Ensure declaration in <signal.h>.
-       * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, include
-       <pthread.h>.
+       * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
+       include <pthread.h>.
        * doc/posix-functions/pthread_sigmask.texi: Mention the header file
        problem.
 
index 2f62c1b..1bd24e5 100644 (file)
@@ -14,7 +14,7 @@ Solaris 2.4, mingw, BeOS.
 @item
 This function is declared in @code{<pthread.h>} instead of @code{<signal.h>}
 on some platforms:
-MacOS X 10.3, FreeBSD 6.4, OpenBSD 3.8, OSF/1 4.0.
+MacOS X 10.3, FreeBSD 6.4, OpenBSD 3.8, OSF/1 4.0, Solaris 2.6.
 @end itemize
 
 Portability problems not fixed by Gnulib:
index ea22772..4757279 100644 (file)
 #ifndef _@GUARD_PREFIX@_SIGNAL_H
 #define _@GUARD_PREFIX@_SIGNAL_H
 
-/* MacOS X 10.3, FreeBSD 6.4, OpenBSD 3.8, OSF/1 4.0 declare pthread_sigmask in
-   <pthread.h>, not in <signal.h>.
+/* MacOS X 10.3, FreeBSD 6.4, OpenBSD 3.8, OSF/1 4.0, Solaris 2.6 declare
+   pthread_sigmask in <pthread.h>, not in <signal.h>.
    But avoid namespace pollution on glibc systems.*/
 #if (@GNULIB_PTHREAD_SIGMASK@ || defined GNULIB_POSIXCHECK) \
-    && ((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined __osf__) \
+    && ((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined __osf__ || defined __sun) \
     && ! defined __GLIBC__
 # include <pthread.h>
 #endif