1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-18 23:42:00 +03:00

pthread_sigmask: Ensure declaration in <signal.h> also on Solaris 2.6.

This commit is contained in:
Bruno Haible
2011-07-08 03:38:33 +02:00
parent b8b7afdc8e
commit a9042e00d8
3 changed files with 6 additions and 6 deletions

View File

@@ -1,8 +1,8 @@
2011-07-07 Bruno Haible <bruno@clisp.org> 2011-07-07 Bruno Haible <bruno@clisp.org>
pthread_sigmask: Ensure declaration in <signal.h>. pthread_sigmask: Ensure declaration in <signal.h>.
* lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, include * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
<pthread.h>. include <pthread.h>.
* doc/posix-functions/pthread_sigmask.texi: Mention the header file * doc/posix-functions/pthread_sigmask.texi: Mention the header file
problem. problem.

View File

@@ -14,7 +14,7 @@ Solaris 2.4, mingw, BeOS.
@item @item
This function is declared in @code{<pthread.h>} instead of @code{<signal.h>} This function is declared in @code{<pthread.h>} instead of @code{<signal.h>}
on some platforms: 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 @end itemize
Portability problems not fixed by Gnulib: Portability problems not fixed by Gnulib:

View File

@@ -55,11 +55,11 @@
#ifndef _@GUARD_PREFIX@_SIGNAL_H #ifndef _@GUARD_PREFIX@_SIGNAL_H
#define _@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 /* MacOS X 10.3, FreeBSD 6.4, OpenBSD 3.8, OSF/1 4.0, Solaris 2.6 declare
<pthread.h>, not in <signal.h>. pthread_sigmask in <pthread.h>, not in <signal.h>.
But avoid namespace pollution on glibc systems.*/ But avoid namespace pollution on glibc systems.*/
#if (@GNULIB_PTHREAD_SIGMASK@ || defined GNULIB_POSIXCHECK) \ #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__ && ! defined __GLIBC__
# include <pthread.h> # include <pthread.h>
#endif #endif