summary refs log tree commit diff
path: root/include/features.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/features.h')
-rw-r--r--include/features.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/features.h b/include/features.h
index e8c97f800e..b6118a1cf6 100644
--- a/include/features.h
+++ b/include/features.h
@@ -121,7 +121,7 @@
 # undef  _POSIX_SOURCE
 # define _POSIX_SOURCE	1
 # undef  _POSIX_C_SOURCE
-# define _POSIX_C_SOURCE	199309L
+# define _POSIX_C_SOURCE	199506L
 # undef  _XOPEN_SOURCE
 # define _XOPEN_SOURCE	500
 # undef  _XOPEN_SOURCE_EXTENDED
@@ -159,7 +159,7 @@
 # if defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) != 500
 #  define _POSIX_C_SOURCE	2
 # else
-#  define _POSIX_C_SOURCE	199309L
+#  define _POSIX_C_SOURCE	199506L
 # endif
 #endif
 
@@ -171,8 +171,13 @@
 # define __USE_POSIX2	1
 #endif
 
-#if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 199309L
-# define __USE_POSIX199309	1
+#ifdef _POSIX_C_SOURCE
+# if _POSIX_C_SOURCE >= 199309L
+#  define __USE_POSIX199309	1
+# endif
+# ifndef _XOPEN_SOURCE
+#  define _XOPEN_SOURCE	500
+# endif
 #endif
 
 #ifdef	_XOPEN_SOURCE