[Cogl] [PATCH] kms: include stddef.h before drm.h
Andreas Oberritter
obi at saftware.de
Tue Jan 28 11:07:15 PST 2014
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 at saftware.de>
---
cogl/winsys/cogl-winsys-egl-kms.c | 1 +
1 file changed, 1 insertion(+)
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>
--
1.8.3.2
More information about the Cogl
mailing list