[cogl/wip/rib/introspection: 1/14] kms: include stddef.h before drm.h



commit abccf6180614eff7c7bde37640a9e8369a4301c9
Author: Andreas Oberritter <obi saftware de>
Date:   Tue Jan 28 20:07:15 2014 +0100

    kms: include stddef.h before drm.h
    
    Not doing so leads to the following error, if stddef.h is not included
    indirectly through EGL headers:
    
    | libdrm/drm.h:132:2: error: unknown type name 'size_t'
    |   size_t name_len;   /**< Length of name buffer */
    
    Signed-off-by: Andreas Oberritter <obi saftware de>
    
    Reviewed-by: Robert Bragg <robert linux intel com>

 cogl/winsys/cogl-winsys-egl-kms.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c
index f7c9cfb..144ad9b 100644
--- a/cogl/winsys/cogl-winsys-egl-kms.c
+++ b/cogl/winsys/cogl-winsys-egl-kms.c
@@ -40,6 +40,7 @@
 
 #include <EGL/egl.h>
 #include <EGL/eglext.h>
+#include <stddef.h>
 #include <drm.h>
 #include <xf86drm.h>
 #include <xf86drmMode.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]