summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-02-13 17:23:55 +0000
committerkib <kib@FreeBSD.org>2016-02-13 17:23:55 +0000
commit3275ec640958983e0a6f3979276b4be3b1cf8e15 (patch)
tree83f53596703d42dfb309b3a811a1470e69a62d62 /include
parent0a4cceb161dfcb232aa9f5d8664e017c2590e0d9 (diff)
downloadFreeBSD-src-3275ec640958983e0a6f3979276b4be3b1cf8e15.zip
FreeBSD-src-3275ec640958983e0a6f3979276b4be3b1cf8e15.tar.gz
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
Diffstat (limited to 'include')
-rw-r--r--include/signal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/signal.h b/include/signal.h
index 33be55c..217fadd 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
/*
OpenPOWER on IntegriCloud