[PATCH 03/67] abuf: Allow use in host tools
    Simon Glass 
    sjg at chromium.org
       
    Wed Jan  1 23:08:49 CET 2025
    
    
  
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 at chromium.org>
---
 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 <sys/types.h>
+#else
 #include <linux/types.h>
+#endif
 
 /**
  * struct abuf - buffer that can be allocated and freed
-- 
2.43.0
    
    
More information about the U-Boot
mailing list