diff options
author | Julius Werner <jwerner@chromium.org> | 2020-01-29 11:34:44 -0800 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2020-01-31 20:36:40 +0000 |
commit | d6900a96e09726246e1747762241216e28ba5f16 (patch) | |
tree | 5380d306502143c8608164ce9c3f511663b0e1fa /util/sconfig/sconfig.y | |
parent | 7cd39d27700a4ca82179978fa459161a4e61773a (diff) |
cbfstool: Set deprecated _BSD_SOURCE and _SVID_SOURCE macros
In glibc feature control macros, _DEFAULT_SOURCE is the shorthand to
tell glibc to enable "all the default stuff", meaning POSIX, BSD and
System V interfaces. However, this macro is somewhat recent and older
glibc versions (e.g. 2.12) are still occasionally in use that don't
recognize it yet. For the benefits of users with these versions, let's
also enable the deprecated _BSD_SOURCE and _SVID_SOURCE macros which
essentially achieve the same thing. We must continue to define
_DEFAULT_SOURCE so that newer glibc versions don't throw a deprecation
warning.
This patch should make BSD-style byteswap macros like le32toh()
available on these older glibc versions.
Change-Id: I019bbcf738a1bcdccd7b299bdde29cd4d4ded134
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38638
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'util/sconfig/sconfig.y')
0 files changed, 0 insertions, 0 deletions