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/librc/librc-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librc') diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c index 04f25b1c..99703155 100644 --- a/src/librc/librc-daemon.c +++ b/src/librc/librc-daemon.c @@ -30,7 +30,7 @@ #include "librc.h" -#if defined(__linux__) || defined (__GLIBC__) +#if defined(__linux__) || defined (__FreeBSD_kernel__) static bool pid_is_exec(pid_t pid, const char *exec) { -- cgit v1.2.3