aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorSvante Signell <svante.signell@gmail.com>2014-10-22 14:59:01 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2014-10-23 13:00:24 -0500
commit875f03e27c3475675f7b9572b071dd8c26257be7 (patch)
treef825c2ce49a2fdc7a3150eed0b6a2a6dda410deb /src/rc
parent203b754f843fe6af0a40e983d557a9cdbc89f84b (diff)
fix defines for GNU/Hurd
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/mountinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c
index 78409875..c4515ae7 100644
--- a/src/rc/mountinfo.c
+++ b/src/rc/mountinfo.c
@@ -35,11 +35,11 @@
# include <sys/ucred.h>
# include <sys/mount.h>
# define F_FLAGS f_flags
-#elif defined(BSD)
+#elif defined(BSD) && !defined(__GNU__)
# include <sys/statvfs.h>
# define statfs statvfs
# define F_FLAGS f_flag
-#elif defined (__linux__) || defined (__FreeBSD_kernel__)
+#elif defined (__linux__) || defined (__FreeBSD_kernel__) || defined(__GNU__)
# include <mntent.h>
#endif
@@ -168,7 +168,7 @@ process_mount(RC_STRINGLIST *list, struct args *args,
return -1;
}
-#ifdef BSD
+#if defined(BSD) && !defined(__GNU__)
/* Translate the mounted options to english
* This is taken directly from FreeBSD mount.c */