skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit 4d47c49485c7af1107c0c2480f72d4780236a77f
parent e9f98a16d7b46332ec4986d890c5d2e26f081cc7
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Thu, 17 Oct 2019 19:56:11 +0000

 nonposix.h: define _GNU_SOURCE for Hurd, remove __GLIBC__ test

__GLIBC__ and similar ftms are not defined in the compiler, but
in features.h, which isn't POSIX so cannot be included, and
standard headers can't be included either because nonposix.h
defines ftms that must exist *prior to* std headers inclusion.

The kernel ftms, however, are defined by the compiler, so we can
use them.

Diffstat:
Msrc/include/skalibs/nonposix.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/include/skalibs/nonposix.h b/src/include/skalibs/nonposix.h @@ -34,7 +34,7 @@ #endif /* sun || __sun */ -#if defined(__linux__) || defined(__GLIBC__) +#if defined(__linux__) || defined(__gnu_hurd__) /* GNU: most extensions are unavailable unless you enable _GNU_SOURCE. Some Linux interfaces are also unavailable without it. */ @@ -43,7 +43,7 @@ #define _GNU_SOURCE #endif -#else /* __linux__ || __GLIBC__. */ +#else /* __linux__ || __gnu_hurd__. */ /* Various BSDs and others: _BSD_SOURCE opens up a lot of extensions. We guard this under not-glibc because recent glibcs scream their @@ -53,7 +53,7 @@ #define _BSD_SOURCE #endif -#endif /* __linux__ || __GLIBC__ */ +#endif /* __linux__ || __gnu_hurd__ */ #ifdef __NetBSD__