aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2016-02-13 17:23:55 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2016-02-13 17:23:55 +0000
commit2dd7d0560aad8e717f15329e1814f654fe10547c (patch)
tree83f53596703d42dfb309b3a811a1470e69a62d62
parent007a703036a4df3dfcdd0e6e5b8c0392298adb68 (diff)
downloadsrc-2dd7d0560aad8e717f15329e1814f654fe10547c.tar.gz
src-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
-rw-r--r--include/signal.h2
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
/*