From 4f76cfe47a8a964cbdff993a85ee55362c2845e0 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Fri, 5 Jun 2015 19:15:43 +0900 Subject: [PATCH] Fix compile error on non Linux-or-BSDs 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/mountcheck.c b/lib/mountcheck.c index 2eedcc71..e37e9f92 100644 --- a/lib/mountcheck.c +++ b/lib/mountcheck.c @@ -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 -- 2.25.1