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 <vidwer@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38648
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Idwer Vollering 2020-09-11 22:32:51 +02:00 committed by Patrick Georgi
parent 563fc0889f
commit 3c5b803bdb
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-only */
#if defined(__FreeBSD__)
#include <sys/endian.h>
#else
#include <endian.h>
#endif

View File

@ -2,7 +2,7 @@
#include <commonlib/bsd/compression.h>
#include <commonlib/bsd/helpers.h>
#include <endian.h>
#include <commonlib/bsd/sysincludes.h>
#include <stdint.h>
#include <string.h>