diff --git a/client_machine.cpp b/client_machine.cpp
index c7821b4629..6c12a2b8cd 100644
--- a/client_machine.cpp
+++ b/client_machine.cpp
@@ -28,6 +28,8 @@ along with this program. If not, see .
#include
// system
#include
+#include
+#include
#include
namespace KWin {
diff --git a/tests/test_client_machine.cpp b/tests/test_client_machine.cpp
index 1129c91b39..4f7125e21f 100644
--- a/tests/test_client_machine.cpp
+++ b/tests/test_client_machine.cpp
@@ -28,6 +28,8 @@ along with this program. If not, see .
#include
// system
#include
+#include
+#include
#include
namespace KWin {