build: avoid Xlib.h via EGL headers
authorPekka Paalanen <pekka.paalanen@collabora.com>
Fri, 24 Jan 2020 13:11:13 +0000 (15:11 +0200)
committerSimon Ser <contact@emersion.fr>
Fri, 24 Jan 2020 14:56:04 +0000 (14:56 +0000)
commit6510b2aba1c57c4f9a6768109c003338e3d316bd
tree6b578a9ace0e83e7b73be92e9ee8de9013f0ac91
parentd6aa818685a4fd473d38e4b1af0ee5dac4ee5162
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 <pekka.paalanen@collabora.com>
meson.build