From: Pekka Paalanen Date: Fri, 24 Jan 2020 13:11:13 +0000 (+0200) Subject: build: avoid Xlib.h via EGL headers X-Git-Tag: upstream/9.0.0~187 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6510b2aba1c57c4f9a6768109c003338e3d316bd;p=platform%2Fupstream%2Fweston.git build: avoid Xlib.h via EGL headers This should make EGL headers not pull in Xlib headers when no specific platform define is in effect. Use both the old Mesa-specific hack and the new official define EGL_NO_X11 to have this work on both old and new EGL headers. Fixes: https://gitlab.freedesktop.org/wayland/weston/issues/350 Signed-off-by: Pekka Paalanen --- diff --git a/meson.build b/meson.build index ebd499de..60e21416 100644 --- a/meson.build +++ b/meson.build @@ -99,6 +99,8 @@ env_modmap = '' config_h.set('_GNU_SOURCE', '1') config_h.set('_ALL_SOURCE', '1') +config_h.set('EGL_NO_X11', '1') +config_h.set('MESA_EGL_NO_X11_HEADERS', '1') config_h.set_quoted('PACKAGE_STRING', 'weston @0@'.format(version_weston)) config_h.set_quoted('PACKAGE_VERSION', version_weston)