coreboot-kgpe-d16/util/cbfstool
Julius Werner d6900a96e0 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>
2020-01-31 20:36:40 +00:00
..
console
flashmap util/*: more typo fixes 2020-01-30 13:47:49 +00:00
lz4
lzma
EXAMPLE
Makefile
Makefile.inc cbfstool: Set deprecated _BSD_SOURCE and _SVID_SOURCE macros 2020-01-31 20:36:40 +00:00
ProcessorBind.h
amdcompress.c util/cbfstool: Add AMD BIOS compression tool for PSP 2019-07-03 21:28:43 +00:00
cbfs-mkpayload.c util/cbfstool: Fix typos 2020-01-30 13:01:00 +00:00
cbfs-mkstage.c commonlib: Add commonlib/bsd 2020-01-28 06:36:13 +00:00
cbfs-payload-linux.c
cbfs.h Remove MIPS architecture 2019-11-20 10:10:48 +00:00
cbfs_image.c util/cbfstool: Fix typos 2020-01-30 13:01:00 +00:00
cbfs_image.h util/cbfstool: Add optional argument ibb 2019-10-18 15:37:37 +00:00
cbfs_sections.c
cbfs_sections.h
cbfscomptool.c
cbfstool.c util/cbfstool: Add optional argument ibb 2019-10-18 15:37:37 +00:00
coff.h
common.c
common.h
compress.c commonlib: Add commonlib/bsd 2020-01-28 06:36:13 +00:00
default-x86.fmd
default.fmd
description.md
elf.h util/*: more typo fixes 2020-01-30 13:47:49 +00:00
elfheaders.c util/cbfstool: Fix typos 2020-01-30 13:01:00 +00:00
elfparsing.h
fdt.h
fit.c util/cbfstool: Fix typos 2020-01-30 13:01:00 +00:00
fit.h
flashmap_tests.c
fmap_from_fmd.c
fmap_from_fmd.h
fmaptool.c lib/fmap: Add optional pre-RAM cache 2019-11-14 03:30:11 +00:00
fmd.c
fmd.h
fmd_parser.c_shipped
fmd_parser.h_shipped
fmd_parser.y
fmd_scanner.c_shipped
fmd_scanner.h_shipped
fmd_scanner.l
fv.h
ifittool.c util/cbfstool: Remove unused assignment 2019-08-20 15:20:30 +00:00
ifwitool.c util/cbfstool: Fix typos 2020-01-30 13:01:00 +00:00
linux.h
linux_trampoline.S
linux_trampoline.c
linux_trampoline.h
option.h
partitioned_file.c util/cbfstool: Close file on error 2019-07-10 18:21:00 +00:00
partitioned_file.h
rmodtool.c
rmodule.c util/cbfstool: Fix typos 2020-01-30 13:01:00 +00:00
rmodule.h
swab.h
xdr.c