aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-10-13 16:24:53 +0000
committerUlrich Drepper <drepper@redhat.com>2005-10-13 16:24:53 +0000
commit1676aaeffd2e156e6d15d3aa59c35214e6a6a2b1 (patch)
tree648fba35572eb13233ccb36402323ff1854fb9a8 /include
parentbf58906631af8fe0d57625988b1d003cc09ef01d (diff)
downloadglibc-1676aaeffd2e156e6d15d3aa59c35214e6a6a2b1.tar
glibc-1676aaeffd2e156e6d15d3aa59c35214e6a6a2b1.tar.gz
glibc-1676aaeffd2e156e6d15d3aa59c35214e6a6a2b1.tar.bz2
glibc-1676aaeffd2e156e6d15d3aa59c35214e6a6a2b1.zip
* include/features.h: Define _POSIX_C_SOURCE to 200112 for
_XOPEN_SOURCE == 600.
Diffstat (limited to 'include')
-rw-r--r--include/features.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/features.h b/include/features.h
index 89f00dfe07..fd4420d74b 100644
--- a/include/features.h
+++ b/include/features.h
@@ -186,8 +186,10 @@
# define _POSIX_SOURCE 1
# if defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) < 500
# define _POSIX_C_SOURCE 2
-# else
+# elif defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) < 600
# define _POSIX_C_SOURCE 199506L
+# else
+# define _POSIX_C_SOURCE 200112L
# endif
#endif
@@ -263,7 +265,7 @@
#endif
#if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0 \
- && __GNUC_PREREQ (4, 1) && defined __OPTIMIZE__ && __OPTIMIZE__ > 0
+ && __GNUC_PREREQ (4, 0) && defined __OPTIMIZE__ && __OPTIMIZE__ > 0
# if _FORTIFY_SOURCE > 1
# define __USE_FORTIFY_LEVEL 2
# else