aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render/interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/wlr/render/interface.h')
-rw-r--r--include/wlr/render/interface.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index 6b80a077..9500bced 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -9,6 +9,12 @@
#ifndef WLR_RENDER_INTERFACE_H
#define WLR_RENDER_INTERFACE_H
+#include <wlr/config.h>
+
+#if !(defined(WLR_HAS_X11_BACKEND) || defined(WLR_HAS_WAYLAND))
+#define MESA_EGL_NO_X11_HEADERS
+#endif
+
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <stdbool.h>