%m, #614

Gary E. Miller gem at rellim.com
Mon Aug 26 23:55:48 UTC 2019


Yo Achim!

On Mon, 26 Aug 2019 21:00:18 +0200
Achim Gratz via devel <devel at ntpsec.org> wrote:

> Hal Murray via devel writes:
> > waf turns on _GNU_SOURCE  
> 
> There's your bug.  You can't do that if you want to stay portable,
> thus you must find another feature test macro for whatever feature
> you are looking for.

_GNU_SOURCE should not always be defined, but it does need to be defined
in certain cases.  For example, on glibc < 2.10, you need to define
it to get strnlen() and struct ifreq.

From glibc 2.10, you instead need _POSIX_C_SOURCE >= 200809L

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20190826/d3c73493/attachment.bin>


More information about the devel mailing list