Fix compile error on non Linux-or-BSDs
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 5 Jun 2015 10:15:43 +0000 (19:15 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 5 Jun 2015 10:24:03 +0000 (19:24 +0900)
e7e136da needed to add #else part with another device_is_mounted()
that returns 0 for non Linux-or-BSDs environment. Any environment
without getmntent(3) or getmntinfo(3) needs a blank function.

lib/mountcheck.c

index 2eedcc718c1300add44d1b425a2a3ba641af0648..e37e9f927b0c3cc2ecfca6cd26ea7017eb3c083f 100644 (file)
@@ -51,4 +51,12 @@ int device_is_mounted(const char *dev)
        return 0;
 }
 
+#else
+/* others */
+
+int device_is_mounted(const char *dev)
+{
+       return 0;
+}
+
 #endif