summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-01-10 17:00:02 -0700
committerTom Rini <trini@konsulko.com>2025-01-22 15:58:03 -0600
commitd887432807af8bdc943e7c8caa2a528dc516f6b3 (patch)
tree65d23256c2417615f85aef419c89bb7f83febe39
parentc487381d50b280a0dce09e00cd29620be9598c90 (diff)
abuf: Allow use in host tools
Some header files included on the host are moving to use abuf, so adjust the header-inclusion to bring in size_t correctly. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--include/abuf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/abuf.h b/include/abuf.h
index 76e314b9a47..de21cefade4 100644
--- a/include/abuf.h
+++ b/include/abuf.h
@@ -9,7 +9,11 @@
#ifndef __ABUF_H
#define __ABUF_H
+#ifdef USE_HOSTCC
+#include <sys/types.h>
+#else
#include <linux/types.h>
+#endif
/**
* struct abuf - buffer that can be allocated and freed