diff options
author | marcel <marcel@FreeBSD.org> | 1999-10-10 15:52:33 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-10-10 15:52:33 +0000 |
commit | 951cf451d1693f0ee0697ed63f2433de1968ee61 (patch) | |
tree | f6831a9d023e539eb7a04d8d3f9c4ef26e7a613d /sys | |
parent | 6534a2c9acfd1f4425bb81018f348a1ccdc5c577 (diff) | |
download | FreeBSD-src-951cf451d1693f0ee0697ed63f2433de1968ee61.zip FreeBSD-src-951cf451d1693f0ee0697ed63f2433de1968ee61.tar.gz |
Use the proper #ifdef around union sigval and siginfo_t. This fixes
the breakage of POSIX sources (such as XFree86).
Reviewed by: bde
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/_sigset.h | 4 | ||||
-rw-r--r-- | sys/sys/signal.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/_sigset.h b/sys/sys/_sigset.h index edddbbe..6ef281418 100644 --- a/sys/sys/_sigset.h +++ b/sys/sys/_sigset.h @@ -125,7 +125,7 @@ typedef void __sighandler_t __P((int)); #define SIG_HOLD ((__sighandler_t *)2) #define SIG_ERR ((__sighandler_t *)-1) -#ifndef _POSIX_SOURCE +#ifdef _P1003_1B_VISIBLE union sigval { /* Members as suggested by Annex C of POSIX 1003.1b. */ int sigval_int; @@ -150,7 +150,7 @@ typedef struct __siginfo { long si_band; /* band event for SIGPOLL */ int __spare__[7]; /* gimme some slack */ } siginfo_t; -#endif +#endif /* _P1003_1B_VISIBLE */ typedef struct __sigset { unsigned int __bits[_SIG_WORDS]; diff --git a/sys/sys/signal.h b/sys/sys/signal.h index edddbbe..6ef281418 100644 --- a/sys/sys/signal.h +++ b/sys/sys/signal.h @@ -125,7 +125,7 @@ typedef void __sighandler_t __P((int)); #define SIG_HOLD ((__sighandler_t *)2) #define SIG_ERR ((__sighandler_t *)-1) -#ifndef _POSIX_SOURCE +#ifdef _P1003_1B_VISIBLE union sigval { /* Members as suggested by Annex C of POSIX 1003.1b. */ int sigval_int; @@ -150,7 +150,7 @@ typedef struct __siginfo { long si_band; /* band event for SIGPOLL */ int __spare__[7]; /* gimme some slack */ } siginfo_t; -#endif +#endif /* _P1003_1B_VISIBLE */ typedef struct __sigset { unsigned int __bits[_SIG_WORDS]; |