diff options
Diffstat (limited to 'meta/recipes-graphics/cogl/cogl-1.0/kms-include-stddef.h-before-drm.h.patch')
-rw-r--r-- | meta/recipes-graphics/cogl/cogl-1.0/kms-include-stddef.h-before-drm.h.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-graphics/cogl/cogl-1.0/kms-include-stddef.h-before-drm.h.patch b/meta/recipes-graphics/cogl/cogl-1.0/kms-include-stddef.h-before-drm.h.patch new file mode 100644 index 0000000000..7cce279a19 --- /dev/null +++ b/meta/recipes-graphics/cogl/cogl-1.0/kms-include-stddef.h-before-drm.h.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | Upstream-Status: Submitted [cogl@lists.freedesktop.org] | ||
2 | |||
3 | From 5e4f4689308732a0570a1631169247157c59f064 Mon Sep 17 00:00:00 2001 | ||
4 | From: Andreas Oberritter <obi@saftware.de> | ||
5 | Date: Tue, 28 Jan 2014 18:36:04 +0100 | ||
6 | Subject: [PATCH] kms: include stddef.h before drm.h | ||
7 | |||
8 | Not doing so leads to the following error, if stddef.h is not included | ||
9 | indirectly through EGL headers: | ||
10 | |||
11 | | libdrm/drm.h:132:2: error: unknown type name 'size_t' | ||
12 | | size_t name_len; /**< Length of name buffer */ | ||
13 | |||
14 | Signed-off-by: Andreas Oberritter <obi@saftware.de> | ||
15 | --- | ||
16 | cogl/winsys/cogl-winsys-egl-kms.c | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c | ||
20 | index f7c9cfb..144ad9b 100644 | ||
21 | --- a/cogl/winsys/cogl-winsys-egl-kms.c | ||
22 | +++ b/cogl/winsys/cogl-winsys-egl-kms.c | ||
23 | @@ -40,6 +40,7 @@ | ||
24 | |||
25 | #include <EGL/egl.h> | ||
26 | #include <EGL/eglext.h> | ||
27 | +#include <stddef.h> | ||
28 | #include <drm.h> | ||
29 | #include <xf86drm.h> | ||
30 | #include <xf86drmMode.h> | ||
31 | -- | ||
32 | 1.8.3.2 | ||
33 | |||