[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 2/4] Include sys/statfs.h rather than sys/mount.h when using GNU.



---
 src/backend/disk-space.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/backend/disk-space.c b/src/backend/disk-space.c
index a8b3a32..a9743c7 100644
--- a/src/backend/disk-space.c
+++ b/src/backend/disk-space.c
@@ -20,7 +20,11 @@
 
 #include <4store-config.h>
 #include <sys/param.h>
+#if defined (__GNU__)
+#include <sys/statfs.h>
+#else
 #include <sys/mount.h>
+#endif
 #include <string.h>
 #include <errno.h>
 #include <glib.h>
-- 
1.7.9.1


Reply to: