diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp
index e37328b10..9f4cfaf0d 100644
--- a/src/engine/client/backend_sdl.cpp
+++ b/src/engine/client/backend_sdl.cpp
@@ -7,6 +7,7 @@
#endif
#include
+#include
#include "SDL.h"
#include "SDL_syswm.h"
#if defined(__ANDROID__)
diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp
index b9917fb60..c84e798bc 100644
--- a/src/engine/client/input.cpp
+++ b/src/engine/client/input.cpp
@@ -1,6 +1,7 @@
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include "SDL.h"
+#include
#include
#include