projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2236df3
)
Fix compile error on non Linux-or-BSDs
author
Tomohiro Kusumi
<kusumi.tomohiro@gmail.com>
Fri, 5 Jun 2015 10:15:43 +0000
(19:15 +0900)
committer
Tomohiro 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
patch
|
blob
|
blame
|
history
diff --git
a/lib/mountcheck.c
b/lib/mountcheck.c
index 2eedcc718c1300add44d1b425a2a3ba641af0648..e37e9f927b0c3cc2ecfca6cd26ea7017eb3c083f 100644
(file)
--- a/
lib/mountcheck.c
+++ b/
lib/mountcheck.c
@@
-51,4
+51,12
@@
int device_is_mounted(const char *dev)
return 0;
}
return 0;
}
+#else
+/* others */
+
+int device_is_mounted(const char *dev)
+{
+ return 0;
+}
+
#endif
#endif