From: Tomohiro Kusumi Date: Fri, 5 Jun 2015 10:15:43 +0000 (+0900) Subject: Fix compile error on non Linux-or-BSDs X-Git-Tag: fio-2.2.9~20 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=4f76cfe47a8a964cbdff993a85ee55362c2845e0;p=fio.git 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. --- 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