aboutsummaryrefslogtreecommitdiffstats
path: root/man7
diff options
context:
space:
mode:
Diffstat (limited to 'man7')
-rw-r--r--man7/feature_test_macros.79
1 files changed, 9 insertions, 0 deletions
diff --git a/man7/feature_test_macros.7 b/man7/feature_test_macros.7
index 3787e70b75..ed386a530a 100644
--- a/man7/feature_test_macros.7
+++ b/man7/feature_test_macros.7
@@ -328,6 +328,15 @@ is also defined).
Use
.B _DEFAULT_SOURCE
instead.
+To allow code that requires
+.BR _BSD_SOURCE
+in glibc 2.19 and earlier and
+.BR _DEFAULT_SOURCE
+in glibc 2.20 and later to compile without warnings, define
+.I both
+.B _BSD_SOURCE
+and
+.BR _DEFAULT_SOURCE .
.TP
.BR _SVID_SOURCE " (deprecated since glibc 2.20)"
Defining this macro with any value causes header files to expose