commit a58c4b6b92c9036a25173c4e63d5235e1f9dcdae parent 4d47c49485c7af1107c0c2480f72d4780236a77f Author: Laurent Bercot <ska-skaware@skarnet.org> Date: Fri, 18 Oct 2019 08:13:51 +0000 __GNU__ is actually preferred to __gnu_hurd__, it seems Diffstat:
M | src/include/skalibs/nonposix.h | | | 13 | +++++++------ |
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/include/skalibs/nonposix.h b/src/include/skalibs/nonposix.h @@ -34,26 +34,27 @@ #endif /* sun || __sun */ -#if defined(__linux__) || defined(__gnu_hurd__) +#if defined(__linux__) || defined(__GNU__) - /* GNU: most extensions are unavailable unless you enable _GNU_SOURCE. - Some Linux interfaces are also unavailable without it. */ + /* GNU (Linux or Hurd): most extensions are unavailable unless + you enable _GNU_SOURCE. Some Linux interfaces are also + unavailable without it. */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif -#else /* __linux__ || __gnu_hurd__. */ +#else /* __linux__ || __GNU__ */ /* Various BSDs and others: _BSD_SOURCE opens up a lot of extensions. - We guard this under not-glibc because recent glibcs scream their + We guard this under not-GNU because recent glibcs scream their heads off if you define _BSD_SOURCE. Stay classy, GNU. */ #ifndef _BSD_SOURCE #define _BSD_SOURCE #endif -#endif /* __linux__ || __gnu_hurd__ */ +#endif /* __linux__ || __GNU__ */ #ifdef __NetBSD__