summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2009-02-28 05:24:05 +0000
committerdas <das@FreeBSD.org>2009-02-28 05:24:05 +0000
commit9b6954ebe0e60c0e789547f1624f2627a375a0bb (patch)
tree5f452c7958c8472412bcf2cb81691a8ffc16a341 /sys
parent28465baaf036b1850892b050b1d72364f8804009 (diff)
downloadFreeBSD-src-9b6954ebe0e60c0e789547f1624f2627a375a0bb.zip
FreeBSD-src-9b6954ebe0e60c0e789547f1624f2627a375a0bb.tar.gz
Add visibility constants for POSIX.1-2008.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/cdefs.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index a850950..9456038 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -472,6 +472,7 @@
* _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995,
* and the omnibus ISO/IEC 9945-1: 1996
* _POSIX_C_SOURCE == 200112 1003.1-2001
+ * _POSIX_C_SOURCE == 200809 1003.1-2008
*
* In addition, the X/Open Portability Guide, which is now the Single UNIX
* Specification, defines a feature-test macro which indicates the version of
@@ -494,7 +495,11 @@
/* Deal with various X/Open Portability Guides and Single UNIX Spec. */
#ifdef _XOPEN_SOURCE
-#if _XOPEN_SOURCE - 0 >= 600
+#if _XOPEN_SOURCE - 0 >= 700
+#define __XSI_VISIBLE 700
+#undef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE 200809
+#elif _XOPEN_SOURCE - 0 >= 600
#define __XSI_VISIBLE 600
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112
@@ -513,7 +518,10 @@
#define _POSIX_C_SOURCE 198808
#endif
#ifdef _POSIX_C_SOURCE
-#if _POSIX_C_SOURCE >= 200112
+#if _POSIX_C_SOURCE >= 200809
+#define __POSIX_VISIBLE 200809
+#define __ISO_C_VISIBLE 1999
+#elif _POSIX_C_SOURCE >= 200121
#define __POSIX_VISIBLE 200112
#define __ISO_C_VISIBLE 1999
#elif _POSIX_C_SOURCE >= 199506
@@ -556,8 +564,8 @@
#define __BSD_VISIBLE 0
#define __ISO_C_VISIBLE 1999
#else /* Default environment: show everything. */
-#define __POSIX_VISIBLE 200112
-#define __XSI_VISIBLE 600
+#define __POSIX_VISIBLE 200809
+#define __XSI_VISIBLE 700
#define __BSD_VISIBLE 1
#define __ISO_C_VISIBLE 1999
#endif
OpenPOWER on IntegriCloud