summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-10-18 08:13:51 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-10-18 08:13:51 +0000
commita58c4b6b92c9036a25173c4e63d5235e1f9dcdae (patch)
tree6f1e67d0150bace9199556a31e0dece43bbe6ebd
parent4d47c49485c7af1107c0c2480f72d4780236a77f (diff)
downloadskalibs-a58c4b6b92c9036a25173c4e63d5235e1f9dcdae.tar.xz
__GNU__ is actually preferred to __gnu_hurd__, it seems
-rw-r--r--src/include/skalibs/nonposix.h13
1 files 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__