From c0b891ecca2b92c9ef2945440c77f45345df3290 Mon Sep 17 00:00:00 2001 From: Matt Coster Date: Thu, 1 Sep 2022 12:24:50 +0100 Subject: [PATCH] util: Include stddef.h in util/macros.h This is required for offsetof, used by the container_of macro. Signed-off-by: Matt Coster Reviewed-by: Chia-I Wu Part-of: --- src/util/macros.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/macros.h b/src/util/macros.h index 88a4c519b17..f726483ee20 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -24,9 +24,10 @@ #ifndef UTIL_MACROS_H #define UTIL_MACROS_H -#include #include +#include #include +#include /* Compute the size of an array */ #ifndef ARRAY_SIZE