From a58c4b6b92c9036a25173c4e63d5235e1f9dcdae Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 18 Oct 2019 08:13:51 +0000 Subject: __GNU__ is actually preferred to __gnu_hurd__, it seems --- 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 index ee93626..d617904 100644 --- 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__ -- cgit v1.2.3