egl: add missing #include <stddef.h> in egldevice.h
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 28 Nov 2018 16:39:34 +0000 (08:39 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 28 Nov 2018 19:22:47 +0000 (11:22 -0800)
Otherwise, I get this error:

main/egldevice.h:54:13: error: ‘NULL’ undeclared (first use in this function)
       dev = NULL;
             ^~~~
with this config:

./autogen.sh --enable-gles1 --enable-gles2 --with-platforms='surfaceless' --disable-glx
             --with-dri-drivers="i965" --with-gallium-drivers="" --enable-gbm

v3: Use stddef.h (Matt)
v4: Modify commit message (Eric)

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/egl/main/egldevice.h

index ddcdcd17f5a449617a411127807b9a1ca1ed5737..83a47d5eacc2cffecc6b879886a762f41832a0c5 100644 (file)
@@ -31,9 +31,9 @@
 
 
 #include <stdbool.h>
+#include <stddef.h>
 #include "egltypedefs.h"
 
-
 #ifdef __cplusplus
 extern "C" {
 #endif