commit 3f82edbeb9251149c6aff071d6537379af4e5eea Author: Svante Signell <svante.signell@gmail.com> Date: Tue Oct 21 01:53:37 2014 -0500 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. diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c index 04f25b1..9970315 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) { ..... Breaks GNU/Hurd builds. Previously defined (__GLIBC__) matches GNU/Hurd. The patch attached will test against __GNU__ explicitly and also unify the formats. Reproducible: Always
Created attachment 416350 [details, diff] GNU-Hurd_declaration_test.patch
This is applied in commit 085d77f. This will be in OpenRC-0.19.
Thanks, William.