diff options
author | Idwer Vollering <vidwer@gmail.com> | 2021-01-11 17:40:28 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-01-13 12:07:17 +0000 |
commit | ebe436922254b7c20fff9fe63e9a21dfbe56a852 (patch) | |
tree | 7d4c377eb741c0e9ed1d339a5e6a29612225d731 | |
parent | ff23a58faf508a65f753b1df8bc5cb790ed2c479 (diff) |
util/cbfstool: unbreak compilation on FreeBSD
Compilation has been broken in commit I022468f6957415ae68a7a7e70428ae6f82d23b06
Adding a missing define solved this. See https://cgit.freebsd.org/src/tree/sys/sys/fcntl.h#n319
Signed-off-by: Idwer Vollering <vidwer@gmail.com>
Change-Id: I3433e4c9269880d3202dd494e5b2e962757a6b87
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49314
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
-rw-r--r-- | util/cbfstool/partitioned_file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/cbfstool/partitioned_file.c b/util/cbfstool/partitioned_file.c index 6e75600cca..4835f6bdc2 100644 --- a/util/cbfstool/partitioned_file.c +++ b/util/cbfstool/partitioned_file.c @@ -1,6 +1,8 @@ /* read and write binary file "partitions" described by FMAP */ /* SPDX-License-Identifier: GPL-2.0-only */ +#define __BSD_VISIBLE 1 + #include "partitioned_file.h" #include "cbfs_sections.h" |