From 875f03e27c3475675f7b9572b071dd8c26257be7 Mon Sep 17 00:00:00 2001 From: Svante Signell Date: Wed, 22 Oct 2014 14:59:01 -0500 Subject: fix defines for GNU/Hurd --- src/librc/librc.h | 4 +++- src/rc/mountinfo.c | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/librc/librc.h b/src/librc/librc.h index 54c9a1ac..0824eba7 100644 --- a/src/librc/librc.h +++ b/src/librc/librc.h @@ -57,11 +57,13 @@ #include #include -#ifdef BSD +#if defined(BSD) && !defined(__GNU__) #include #include #include #include +#else +#include #endif #include "rc.h" 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 # include # define F_FLAGS f_flags -#elif defined(BSD) +#elif defined(BSD) && !defined(__GNU__) # include # define statfs statvfs # define F_FLAGS f_flag -#elif defined (__linux__) || defined (__FreeBSD_kernel__) +#elif defined (__linux__) || defined (__FreeBSD_kernel__) || defined(__GNU__) # include #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 */ -- cgit v1.2.3