diff --git a/abstract_egl_backend.h b/abstract_egl_backend.h
index 775b555cfe..c1de6c2170 100644
--- a/abstract_egl_backend.h
+++ b/abstract_egl_backend.h
@@ -21,6 +21,9 @@ along with this program. If not, see .
#define KWIN_ABSTRACT_EGL_BACKEND_H
#include "scene_opengl.h"
+#include
+#include
+
class QOpenGLFramebufferObject;
namespace KWin
diff --git a/libkwineffects/kwinglutils_funcs.h b/libkwineffects/kwinglutils_funcs.h
index 2208dde938..3657751e3a 100644
--- a/libkwineffects/kwinglutils_funcs.h
+++ b/libkwineffects/kwinglutils_funcs.h
@@ -23,10 +23,6 @@ along with this program. If not, see .
#include
-#include
-
-#include
-
#include
#include