[cogl/cogl-1.18] kms: include stddef.h before drm.h



commit 3669a892155ec3de5bed11133e1945d0c5f61ff1
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>
    (cherry picked from commit 55c82476a93366a3e7d1a2537fccc3a7aab87c66)

 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 a6cf3c2..dd10595 100644
--- a/cogl/winsys/cogl-winsys-egl-kms.c
+++ b/cogl/winsys/cogl-winsys-egl-kms.c
@@ -34,6 +34,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]