diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2016-02-13 17:23:55 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2016-02-13 17:23:55 +0000 |
commit | 2dd7d0560aad8e717f15329e1814f654fe10547c (patch) | |
tree | 83f53596703d42dfb309b3a811a1470e69a62d62 /include/signal.h | |
parent | 007a703036a4df3dfcdd0e6e5b8c0392298adb68 (diff) | |
download | src-test2-2dd7d0560aad8e717f15329e1814f654fe10547c.tar.gz src-test2-2dd7d0560aad8e717f15329e1814f654fe10547c.zip |
Hide ucontext_t and mcontext_t when neither POSIX nor XSI features are
enabled in the compilation environment, i.e. for ANSI C use of
#include <signal.h>.
Requested and reviewed by: bde
Sponsored by: The FreeBSD Foundation
MFC after: 13 days
Notes
Notes:
svn path=/head/; revision=295602
Diffstat (limited to 'include/signal.h')
-rw-r--r-- | include/signal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/signal.h b/include/signal.h index 33be55c6dd25..217faddea03d 100644 --- a/include/signal.h +++ b/include/signal.h @@ -36,8 +36,10 @@ #include <sys/cdefs.h> #include <sys/_types.h> #include <sys/signal.h> +#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE #include <machine/ucontext.h> #include <sys/_ucontext.h> +#endif #if __BSD_VISIBLE /* |