diff --git a/engine/client/sys_sdl.c b/engine/client/sys_sdl.c
index 47b583f4f..805efce9a 100644
--- a/engine/client/sys_sdl.c
+++ b/engine/client/sys_sdl.c
@@ -10,6 +10,7 @@
 
 #ifndef WIN32
 #include <fcntl.h>
+#include <sys/stat.h>
 #else
 #include <direct.h>
 #endif