include/features.h: add _DEFAULT_SOURCE macro
commit526747a2bf6193f784a578b0b97cffaccb44e3df
authorAnthony G. Basile <blueness@gentoo.org>
Wed, 31 May 2017 23:41:26 +0000 (31 23:41 +0000)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Thu, 1 Jun 2017 11:19:52 +0000 (1 13:19 +0200)
treee4bed4cd35872550e94a3d8d4e3dd7f633919997
parent228f76d4dfe9a8a9b50e4c5ac8161a991fc8107c
include/features.h: add _DEFAULT_SOURCE macro

man feature_test_macros(7) specifies that _BSD_SOURCE and _SVID_SOURCE have
been deprecated in favor of _DEFAULT_SOURCE since libc 2.20.  Specifying
either of the former is now equivalent to specifying just the latter.  We add
this macro to conform to this standard, but do not add the compiler warning
to maintain full backwards compatibility with earlier version of glibc and
uclibc.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
include/features.h