diff options
author | Patrick Georgi <patrick@coreboot.org> | 2021-12-05 14:04:06 +0100 |
---|---|---|
committer | Patrick Georgi <patrick@coreboot.org> | 2021-12-06 19:40:53 +0000 |
commit | 987e3dc80beefb3a72b19f35b1569695b80dce11 (patch) | |
tree | 6779d17f04424bc34defb0a8277c45e8b700670d /util/cbfstool/flashmap | |
parent | 1f8563ec0e9ab8f474fe222fa022d41836c9fccd (diff) |
util/cbfstool: Ensure that htole32 et al are visible when building
endian.h wasn't included (although it probably came in as an indirect
include) but in some header sets _XOPEN_SOURCE overrides _DEFAULT_SOURCE
whereas the latter is a super set of the former:
We should get the same things as with _XOPEN_SOURCE (such as memccpy for
which it has been defined) but also extra features like htole32.
Change-Id: Iaee7495b2ae64fdc719ae0879ea95fe7df286212
Signed-off-by: Patrick Georgi <patrick@coreboot.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59891
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Rob Barnes <robbarnes@google.com>
Diffstat (limited to 'util/cbfstool/flashmap')
-rw-r--r-- | util/cbfstool/flashmap/fmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/cbfstool/flashmap/fmap.c b/util/cbfstool/flashmap/fmap.c index c152b0dc4e..cb67b46899 100644 --- a/util/cbfstool/flashmap/fmap.c +++ b/util/cbfstool/flashmap/fmap.c @@ -1,8 +1,7 @@ /* SPDX-License-Identifier: BSD-3-Clause or GPL-2.0-only */ -#define _XOPEN_SOURCE 700 - #include <ctype.h> +#include <endian.h> #include <stdlib.h> #include <stdio.h> #include <string.h> |