Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Feb 2016 17:23:55 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r295602 - head/include
Message-ID:  <201602131723.u1DHNteq095053@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Feb 13 17:23:55 2016
New Revision: 295602
URL: https://svnweb.freebsd.org/changeset/base/295602

Log:
  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

Modified:
  head/include/signal.h

Modified: head/include/signal.h
==============================================================================
--- head/include/signal.h	Sat Feb 13 16:02:12 2016	(r295601)
+++ head/include/signal.h	Sat Feb 13 17:23:55 2016	(r295602)
@@ -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
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602131723.u1DHNteq095053>