Yo Richard! On Thu, 29 Aug 2019 16:52:16 -0500 Richard Laager via devel <devel@ntpsec.org> wrote:
> On 8/29/19 4:04 PM, Hal Murray via devel wrote: > > Gary said: > > [API for strerror_r()] > >> On Linux, yes. But not on all distros. For example, on Android, > >> which gpsd supports, strerror_r() always returns an int. No > >> options. > > > > Same on NetBSD and FreeBSD. > > Right, so that seems like an argument to use the XSI interface, not > the GNU one. Everyone but Linux glibc uses the XSI interface, and > Linux glibc can be configured to present the XSI interface. > > "The XSI-compliant version is provided if: (_POSIX_C_SOURCE >= > 200112L) && ! _GNU_SOURCE" > > So basically, don't set _GNU_SOURCE, and either don't set > _POSIX_C_SOURCE at all, or set _POSIX_C_SOURCE to 200112L (or > something newer)? Then you can not run on older glibc (pre 2.13). CentOS supported 2.12 as recently as 2017. > Then make sure the NTPsec code is consistently written with the > assumption of the XSI interface, not the GNU one (i.e. fix one of the > mismatches in NTPsec, if that hasn't already been done). And breaks not too old distros... I'll leave that policy decision to someone else. RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 g...@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
pgp3SJ4oun6SZ.pgp
Description: OpenPGP digital signature
_______________________________________________ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel