Various cleanups
[fio.git] / lib / mountcheck.c
index 2eedcc718c1300add44d1b425a2a3ba641af0648..e8780eb3b46a166f81726c9a2966a1a0c901a465 100644 (file)
@@ -4,6 +4,8 @@
 #ifdef CONFIG_GETMNTENT
 #include <mntent.h>
 
+#include "lib/mountcheck.h"
+
 #define MTAB   "/etc/mtab"
 
 int device_is_mounted(const char *dev)
@@ -51,4 +53,12 @@ int device_is_mounted(const char *dev)
        return 0;
 }
 
+#else
+/* others */
+
+int device_is_mounted(const char *dev)
+{
+       return 0;
+}
+
 #endif