Fix build error on non-GNU environment
[fio.git] / lib / mountcheck.c
index dea27462e121befd46793c0b057948912bacc36a..bb01f69f46b1ed579fbd36bb6d4a4cf6f8f4f374 100644 (file)
@@ -1,8 +1,8 @@
 #include <stdio.h>
 #include <string.h>
-#include <mntent.h>
 
 #ifdef CONFIG_GETMNTENT
+#include <mntent.h>
 
 #define MTAB   "/etc/mtab"