diff --git a/src/wayland/autotests/client/test_error.cpp b/src/wayland/autotests/client/test_error.cpp
index 7e6a793f27..b958fd48be 100644
--- a/src/wayland/autotests/client/test_error.cpp
+++ b/src/wayland/autotests/client/test_error.cpp
@@ -35,6 +35,8 @@ License along with this library. If not, see .
#include
+#include // For EPROTO
+
using namespace KWayland::Client;
using namespace KWayland::Server;