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>
This commit is contained in:
Simon Glass 2025-01-10 17:00:02 -07:00 committed by Tom Rini
parent c487381d50
commit d887432807

View File

@ -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