diff --git a/gfx/drivers_context/wayland_ctx.c b/gfx/drivers_context/wayland_ctx.c index 5d9dd85f07..154af44a3b 100644 --- a/gfx/drivers_context/wayland_ctx.c +++ b/gfx/drivers_context/wayland_ctx.c @@ -14,6 +14,10 @@ * If not, see . */ +#ifdef HAVE_CONFIG_H +#include "../../config.h" +#endif + /* Temporary switch until this driver is ready for Vulkan, * replace HAVE_VULKAN_SUPPORT with HAVE_VULKAN then */ #if 0 @@ -29,17 +33,24 @@ #include #include +#include #include +#ifdef HAVE_EGL #include +#endif #include #include "../../driver.h" #include "../../general.h" #include "../../runloop.h" +#ifdef HAVE_EGL #include "../common/egl_common.h" +#endif +#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) #include "../common/gl_common.h" +#endif static volatile sig_atomic_t g_quit = 0;