summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-12-02 14:24:57 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-12-02 17:34:12 +0900
commit865d2c27001b0a26b5d1a80f42a769edd5c62f89 (patch)
tree80486d785124b60412c4ccdbe7bbb28d8b6b6976 /src
parentf3c05ef1447ae5721e911a311faa395256a764dd (diff)
downloadefl-865d2c27001b0a26b5d1a80f42a769edd5c62f89.tar.gz
gl drm/x11: Fix compilation for EGL < 1.5
This is an attempt at fixing compilation for systems with old EGL headers (version < 1.5). Thanks Roy for the report! Backported from master to avoid build breaks following the previous @fix.
Diffstat (limited to 'src')
-rw-r--r--src/modules/evas/engines/gl_drm/evas_engine.c4
-rw-r--r--src/modules/evas/engines/gl_x11/evas_x_main.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_engine.c b/src/modules/evas/engines/gl_drm/evas_engine.c
index fc7524e0eb..fe8abfca26 100644
--- a/src/modules/evas/engines/gl_drm/evas_engine.c
+++ b/src/modules/evas/engines/gl_drm/evas_engine.c
@@ -20,6 +20,10 @@
#define EVAS_GL_UPDATE_TILE_SIZE 16
+#ifndef EGL_VERSION_1_5
+typedef intptr_t EGLAttrib;
+#endif
+
/* external variables */
int _evas_engine_gl_drm_log_dom = -1;
int _extn_have_buffer_age = 1;
diff --git a/src/modules/evas/engines/gl_x11/evas_x_main.c b/src/modules/evas/engines/gl_x11/evas_x_main.c
index 7879c5e91f..e8fecd55b6 100644
--- a/src/modules/evas/engines/gl_x11/evas_x_main.c
+++ b/src/modules/evas/engines/gl_x11/evas_x_main.c
@@ -155,6 +155,10 @@ _visuals_hash_index_get_from_info(Evas_Engine_Info_GL_X11 *info)
# define EGL_PLATFORM_X11_KHR 0x31D5
#endif
+#ifndef EGL_VERSION_1_5
+typedef intptr_t EGLAttrib;
+#endif
+
static EGLDisplay *
_x11_eglGetDisplay(Display *x11_display)
{