diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h index fedb6fdd..269af7e2 100644 --- a/include/wlr/render/egl.h +++ b/include/wlr/render/egl.h @@ -11,7 +11,7 @@ #include -#if !WLR_HAS_X11_BACKEND && !WLR_HAS_XWAYLAND +#if !WLR_HAS_X11_BACKEND && !WLR_HAS_XWAYLAND && !defined MESA_EGL_NO_X11_HEADERS #define MESA_EGL_NO_X11_HEADERS #endif diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index a7f97a89..c98a7cda 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -11,7 +11,7 @@ #include -#if !WLR_HAS_X11_BACKEND && !WLR_HAS_XWAYLAND +#if !WLR_HAS_X11_BACKEND && !WLR_HAS_XWAYLAND && !defined MESA_EGL_NO_X11_HEADERS #define MESA_EGL_NO_X11_HEADERS #endif