From 64d78bba9c41281b3e439e8f3f0d0844dc4e414a Mon Sep 17 00:00:00 2001 From: Ahmet Acar Date: Fri, 13 Nov 2015 10:25:46 -0600 Subject: [PATCH] shared: work around EGL header idiosyncrasy When no X11 headers are present eglplatform.h will break unless certain defines are set prior to its inclusion. including wayland-egl.h defines WL_EGL_PLATFORM which will stop the attempted inclusion of the X11 headers. Maybe this isn't the best solution to the problem, but it's harmless and gets the job done. Closes bug: https://bugs.freedesktop.org/show_bug.cgi?id=92104 Reviewed-by: Derek Foreman (patch by Ahmet Acar, commit log by Derek Foreman) --- shared/platform.h | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/platform.h b/shared/platform.h index 64e1fbf2..cf4ecc02 100644 --- a/shared/platform.h +++ b/shared/platform.h @@ -29,6 +29,7 @@ #include #ifdef ENABLE_EGL +#include #include #include #endif