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 ++-- src/rc/rc-logger.c | 2 +- src/rc/runscript.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/rc') 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) { diff --git a/src/rc/rc-logger.c b/src/rc/rc-logger.c index e8fb0ff7..50cf6187 100644 --- a/src/rc/rc-logger.c +++ b/src/rc/rc-logger.c @@ -44,7 +44,7 @@ #include #include -#if defined(__linux__) || defined(__GLIBC__) +#if defined(__linux__) || defined(__FreeBSD_kernel__) # include #elif defined(__NetBSD__) || defined(__OpenBSD__) # include diff --git a/src/rc/runscript.c b/src/rc/runscript.c index de18f90a..96aa683d 100644 --- a/src/rc/runscript.c +++ b/src/rc/runscript.c @@ -51,7 +51,7 @@ #include #include -#if defined(__linux__) || defined(__GLIBC__) +#if defined(__linux__) || defined(__FreeBSD_kernel__) # include #elif defined(__NetBSD__) || defined(__OpenBSD__) # include -- cgit v1.2.3