From ebe436922254b7c20fff9fe63e9a21dfbe56a852 Mon Sep 17 00:00:00 2001 From: Idwer Vollering Date: Mon, 11 Jan 2021 17:40:28 +0100 Subject: 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 Change-Id: I3433e4c9269880d3202dd494e5b2e962757a6b87 Reviewed-on: https://review.coreboot.org/c/coreboot/+/49314 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner Reviewed-by: Arthur Heymans --- util/cbfstool/partitioned_file.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util') 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" -- cgit v1.2.3