diff --git a/gfx/drivers_context/mali_fbdev_ctx.c b/gfx/drivers_context/mali_fbdev_ctx.c index e248fce9c4..55fb7ff3c6 100644 --- a/gfx/drivers_context/mali_fbdev_ctx.c +++ b/gfx/drivers_context/mali_fbdev_ctx.c @@ -26,8 +26,14 @@ #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 typedef struct {