summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/files.cc5
-rw-r--r--crawl-ref/source/maps.cc1
2 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index f16cea7262..aa14cfe8a8 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -40,8 +40,6 @@
#endif
#ifdef UNIX
-#include <sys/types.h>
-#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#endif
@@ -51,6 +49,9 @@
#include <sys/types.h>
#endif
+#include <sys/types.h>
+#include <sys/stat.h>
+
#include <dirent.h>
#include "externs.h"
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc
index 3e27840dd3..22e62c9df7 100644
--- a/crawl-ref/source/maps.cc
+++ b/crawl-ref/source/maps.cc
@@ -18,6 +18,7 @@
#include <cstring>
#include <cstdlib>
#include <errno.h>
+#include <unistd.h>
#include "dungeon.h"
#include "enum.h"