[PATCH 2/2 v2] Merge parts of <sys/time.h> from FreeBSD
Thu Mar 12 16:24:00 GMT 2015
On Mar 12 14:17, Sebastian Huber wrote:
> Status: O
> Content-Length: 20077
> Lines: 669
> Merge parts of the latest <sys/time.h> from FreeBSD to Newlib. This has
> two reasons.
> 1. We want to use the FreeBSD timecounters for timekeeping in RTEMS.
> See also https://devel.rtems.org/ticket/2271.
> 2. This makes the port of the network stack from FreeBSD easier.
This patch breaks Cygwin. The problem is that the introduction of
sys/_timeval.h drops the _TIMEVAL_DEFINED guards. These guards,
plus only in newlib
are shared with the Mingw-w64 header _timeval.h which defines struct
timeval slightly differently (thanks, Windows!). These guards must be
maintained in the new version, too.
May I suggest to move the definition of the aforementioned macros into
the new _timeval.h file, as in Mingw-w64, so as to simplify the guarding?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 819 bytes
Desc: not available
More information about the Newlib