From 3c5b803bdb512190235fe098d133e773f905dbd5 Mon Sep 17 00:00:00 2001 From: Idwer Vollering Date: Fri, 11 Sep 2020 22:32:51 +0200 Subject: util/cbfstool: extend includes in commonlib Certain non-Linux OSes require an include file in different places. Build tested on Linux, FreeBSD. Change-Id: Icd81c2a96c608589ce2ec8f4b883fd4e584776b1 Signed-off-by: Idwer Vollering Reviewed-on: https://review.coreboot.org/c/coreboot/+/38648 Reviewed-by: Angel Pons Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) --- src/commonlib/bsd/include/commonlib/bsd/sysincludes.h | 6 ++++++ src/commonlib/bsd/lz4_wrapper.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/commonlib/bsd/include/commonlib/bsd/sysincludes.h (limited to 'src/commonlib') diff --git a/src/commonlib/bsd/include/commonlib/bsd/sysincludes.h b/src/commonlib/bsd/include/commonlib/bsd/sysincludes.h new file mode 100644 index 0000000000..3a87cda1c4 --- /dev/null +++ b/src/commonlib/bsd/include/commonlib/bsd/sysincludes.h @@ -0,0 +1,6 @@ +/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-only */ +#if defined(__FreeBSD__) +#include +#else +#include +#endif diff --git a/src/commonlib/bsd/lz4_wrapper.c b/src/commonlib/bsd/lz4_wrapper.c index 3822e8c60f..73185a5051 100644 --- a/src/commonlib/bsd/lz4_wrapper.c +++ b/src/commonlib/bsd/lz4_wrapper.c @@ -2,7 +2,7 @@ #include #include -#include +#include #include #include -- cgit v1.2.3