From: Simon Glass Date: Sat, 11 Jan 2025 00:00:02 +0000 (-0700) Subject: abuf: Allow use in host tools X-Git-Tag: v2025.04-rc1~27^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d887432807af8bdc943e7c8caa2a528dc516f6b3;p=pandora-u-boot.git 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 --- 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