]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Include stddef.h to use the standard offsetof()
authorJouni Malinen <j@w1.fi>
Tue, 7 Jul 2015 09:24:57 +0000 (12:24 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 7 Jul 2015 13:25:06 +0000 (16:25 +0300)
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 <j@w1.fi>
src/utils/includes.h

index 6c6ec87d0eaf43079bb9781dfa3406a466c60644..9781574954422534de18cf50538c066d179c3fb3 100644 (file)
@@ -17,6 +17,7 @@
 #include "build_config.h"
 
 #include <stdlib.h>
+#include <stddef.h>
 #include <stdio.h>
 #include <stdarg.h>
 #include <string.h>