diff --git a/src/servermain.cpp b/src/servermain.cpp
index 91b31fb58ee98d9acb734de62c245259175f64de..146c548c506d4a16c9e40f2cc3cff7fb152274aa 100644
--- a/src/servermain.cpp
+++ b/src/servermain.cpp
@@ -69,6 +69,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "materials.h"
 #include "config.h"
 #include "mineral.h"
+#include "filesys.h"
 
 /*
 	Settings.