summaryrefslogtreecommitdiffstats
path: root/base/file_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/file_util.h')
-rw-r--r--base/file_util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/file_util.h b/base/file_util.h
index d622fb2..3686a18 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -13,9 +13,10 @@
#if defined(OS_WIN)
#include <windows.h>
#elif defined(OS_POSIX)
-#include <fts.h>
-#include <sys/stat.h>
+// Keep the order as in fts(3): fts.h requires types defined in sys/types.h
#include <sys/types.h>
+#include <sys/stat.h>
+#include <fts.h>
#endif
#include <stdio.h>