]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/blob
ebe5754a7ac2c31cb97cdc46357e5090d46f38f5
[thirdparty/openembedded/openembedded-core-contrib.git] /
1 From 62e178ddae24c7633d2a03b129dc52261e0a15bf Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Wed, 7 Feb 2018 00:48:03 -0800
4 Subject: [PATCH] Define MESA_EGL_NO_X11_HEADERS before including eglplatform.h
5 when X11 is disabled
6
7 This helps in compiling when GL implementations e.g. mesa use
8 this define to exclude X11 headers
9
10 Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 ---
12 Upstream-Status: Submitted [https://github.com/anholt/libepoxy/pull/153]
13
14 src/dispatch_common.h | 3 +++
15 1 file changed, 3 insertions(+)
16
17 Index: libepoxy-1.4.3/src/dispatch_common.h
18 ===================================================================
19 --- libepoxy-1.4.3.orig/src/dispatch_common.h
20 +++ libepoxy-1.4.3/src/dispatch_common.h
21 @@ -46,6 +46,9 @@
22 #include "epoxy/glx.h"
23 #endif
24 #if PLATFORM_HAS_EGL
25 +#if !PLATFORM_HAS_GLX
26 +#define MESA_EGL_NO_X11_HEADERS 1
27 +#endif
28 #include "epoxy/egl.h"
29 #endif
30 #if PLATFORM_HAS_WGL