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
This commit is contained in:
kib 2016-02-13 17:23:55 +00:00
parent 0a4cceb161
commit 3275ec6409

View File

@ -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
/*