diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2022-10-24 22:25:44 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2022-10-24 22:25:44 +0200 |
commit | cb4186bef1b44691db4221406d001a8d40c65b4b (patch) | |
tree | 285662381eaa0514f988142bff0c8a9685c84dc0 /tests/signal.in.h | |
parent | cc0876a2fa9e703b1064992ab535f3eed57e9c71 (diff) | |
parent | 26112352a774737e1ce5580c93654a26c1e82b39 (diff) |
Update upstream source from tag 'upstream/1.1'
Update to upstream version '1.1'
with Debian dir acc8a9214de592a0bbbdb680385559210b329d52
Diffstat (limited to 'tests/signal.in.h')
-rw-r--r-- | tests/signal.in.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/signal.in.h b/tests/signal.in.h index 640b502..c0d4848 100644 --- a/tests/signal.in.h +++ b/tests/signal.in.h @@ -55,13 +55,21 @@ #ifndef _@GUARD_PREFIX@_SIGNAL_H #define _@GUARD_PREFIX@_SIGNAL_H -/* Mac OS X 10.3, FreeBSD 6.4, OpenBSD 3.8, OSF/1 4.0, Solaris 2.6, Android, +/* For testing the OpenBSD version. */ +#if (@GNULIB_PTHREAD_SIGMASK@ || defined GNULIB_POSIXCHECK) \ + && defined __OpenBSD__ +# include <sys/param.h> +#endif + +/* Mac OS X 10.3, FreeBSD < 8.0, OpenBSD < 5.1, OSF/1 4.0, Solaris 2.6, Android, OS/2 kLIBC 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 __sun || defined __ANDROID__ || defined __KLIBC__) \ + || (defined __FreeBSD__ && __FreeBSD__ < 8) \ + || (defined __OpenBSD__ && OpenBSD < 201205) \ + || defined __osf__ || defined __sun || defined __ANDROID__ \ + || defined __KLIBC__) \ && ! defined __GLIBC__ # include <pthread.h> #endif |