summaryrefslogtreecommitdiffstats
path: root/src/commonlib/bsd
diff options
context:
space:
mode:
authorThomas Heijligen <src@posteo.de>2022-11-28 11:46:48 +0100
committerFelix Held <felix-coreboot@felixheld.de>2023-02-16 17:55:37 +0000
commit3f9613bf6dbf84313b46c3ca364457e28bc00008 (patch)
treef5b96abea0b968f636b2c921b705dc14f181f494 /src/commonlib/bsd
parent3d91563c98296ea9947cfab4077f8d8cd1a78835 (diff)
downloadcoreboot-3f9613bf6dbf84313b46c3ca364457e28bc00008.tar.gz
coreboot-3f9613bf6dbf84313b46c3ca364457e28bc00008.tar.bz2
coreboot-3f9613bf6dbf84313b46c3ca364457e28bc00008.zip
commonlib/bsd, libpayload: Do not include helpers.h in stddef.h
`stddef.h` should only provide the definitions defined by ISO or Posix. The included `commonlib/bsd/helpers.h` provide a lot of non standard definitions that may interfere with definitions from the application. Change-Id: Ia71edbc3ffe6694ff4b971decf3a41f915264bc8 Signed-off-by: Thomas Heijligen <src@posteo.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70116 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/commonlib/bsd')
-rw-r--r--src/commonlib/bsd/cbfs_mcache.c1
-rw-r--r--src/commonlib/bsd/cbfs_private.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/commonlib/bsd/cbfs_mcache.c b/src/commonlib/bsd/cbfs_mcache.c
index 29ba110d7c1d..8714cc0ec62f 100644
--- a/src/commonlib/bsd/cbfs_mcache.c
+++ b/src/commonlib/bsd/cbfs_mcache.c
@@ -2,6 +2,7 @@
#include <assert.h>
#include <commonlib/bsd/cbfs_private.h>
+#include <commonlib/bsd/helpers.h>
/*
* A CBFS metadata cache is an in memory data structure storing CBFS file headers (= metadata).
diff --git a/src/commonlib/bsd/cbfs_private.c b/src/commonlib/bsd/cbfs_private.c
index b9221fc7767a..7ad29861df35 100644
--- a/src/commonlib/bsd/cbfs_private.c
+++ b/src/commonlib/bsd/cbfs_private.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later */
#include <commonlib/bsd/cbfs_private.h>
+#include <commonlib/bsd/helpers.h>
#include <assert.h>
static enum cb_err read_next_header(cbfs_dev_t dev, size_t *offset, struct cbfs_file *buffer,