Conditionally include <sys/shm.h> based on OS support. Define missing MAP_HUGETLB...
[fio.git] / init.c
diff --git a/init.c b/init.c
index c7226887210363b9dbeb637420ae683458409c92..9d15318209cfe0f02d7ff65e32c94464023cca25 100644 (file)
--- a/init.c
+++ b/init.c
@@ -9,13 +9,14 @@
 #include <string.h>
 #include <errno.h>
 #include <sys/ipc.h>
-#ifndef FIO_NO_HAVE_SHM_H
-#include <sys/shm.h>
-#endif
 #include <sys/types.h>
 #include <sys/stat.h>
 
 #include "fio.h"
+#ifndef FIO_NO_HAVE_SHM_H
+#include <sys/shm.h>
+#endif
+
 #include "parse.h"
 #include "smalloc.h"
 #include "filehash.h"