From 3f82edbeb9251149c6aff071d6537379af4e5eea Mon Sep 17 00:00:00 2001 From: Svante Signell Date: Tue, 21 Oct 2014 01:53:37 -0500 Subject: Fix GNU/kFreeBSD port Check for __FreeBSD_kernel instead of __GLIBC__ in source files. note from William Hubbs: I was told this is a better check for GNU/kFreeBSD than checking the C library the source is being compiled against. GNU/kFreeBSD than checking which library we are using. --- src/rc/mountinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rc/mountinfo.c') diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c index ce3f27dd..78409875 100644 --- a/src/rc/mountinfo.c +++ b/src/rc/mountinfo.c @@ -39,7 +39,7 @@ # include # define statfs statvfs # define F_FLAGS f_flag -#elif defined (__linux__) || defined (__GLIBC__) +#elif defined (__linux__) || defined (__FreeBSD_kernel__) # include #endif @@ -265,7 +265,7 @@ find_mounts(struct args *args) return list; } -#elif defined (__linux__) || defined (__GLIBC__) +#elif defined (__linux__) || defined (__FreeBSD_kernel__) static struct mntent * getmntfile(const char *file) { -- cgit v1.2.3