diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2014-03-14 10:37:45 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2014-03-14 10:37:45 +0100 |
| commit | da6aad026b17f5d76b4adbee8dd87579242eeaea (patch) | |
| tree | 57c09c3bdac3197eacae2797e6601f7ffb8952bd /man7 | |
| parent | 7280750886f87cd8160a8b161da96fab983a59fc (diff) | |
| download | man-pages-da6aad026b17f5d76b4adbee8dd87579242eeaea.tar.gz | |
feature_test_macros.7: Add packaging note for _BSD_SOURCE/_SVID_SOURCE/_DEFAULT_SOURCE
To compile warning-free across glibc < 2.20 and glibc >= 2.20
code may been to define both _DEFAULT_SOURCE and either
_BSD_SOURCE or _SVID_SOURCE.
Reported-by: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7')
| -rw-r--r-- | man7/feature_test_macros.7 | 9 |
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 |
