From: Jouni Malinen Date: Tue, 7 Jul 2015 09:24:57 +0000 (+0300) Subject: Include stddef.h to use the standard offsetof() X-Git-Tag: hostap_2_5~469 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd47c80564dff16ff1a9c66f953e278a1f26f212;p=thirdparty%2Fhostap.git Include stddef.h to use the standard offsetof() src/utils/list.h ended up defining a local version of offsetof() due to stddef.h not getting included. This resulted in unnecessary warnings from ubsan related to "dereferencing" of a NULL pointer. Signed-off-by: Jouni Malinen --- diff --git a/src/utils/includes.h b/src/utils/includes.h index 6c6ec87d0..978157495 100644 --- a/src/utils/includes.h +++ b/src/utils/includes.h @@ -17,6 +17,7 @@ #include "build_config.h" #include +#include #include #include #include