On 3/21/2016 12:04 PM, Eric Blake wrote:
Do we even need to wait for a version number from newlib, or can we
probe based on one of the other changes going in at the same time? For
example, part of the newlib/Cygwin changes was the addition of a new
sys/_timespec.h, with a new witness variable _SYS__TIMESPEC_H_, which
should not be defined in the older layout of the headers. Therefore, it
may be feasible to do:
#if !((defined __GLIBC__ \
|| (defined __NEWLIB__ && defined _SYS_TIMESPEC_H)) \
_SYS__TIMESPEC_H_
&& !defined __UCLIBC__
and thereby simultaneously cater to both old and new cygwin headers
without waiting for a version number bump from newlib.
This assumes that sys/time.h has already been included. But part of the
patch that Paul applied was to avoid that inclusion.
Ken