From d887432807af8bdc943e7c8caa2a528dc516f6b3 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 10 Jan 2025 17:00:02 -0700 Subject: [PATCH] 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 --- include/abuf.h | 4 ++++ 1 file changed, 4 insertions(+) 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 +#else #include +#endif /** * struct abuf - buffer that can be allocated and freed -- 2.39.5