[PATCH v3] Merge parts of <sys/time.h> from FreeBSD

Marco Atzeri marco.atzeri@gmail.com
Mon Jul 6 08:08:00 GMT 2015

On 3/13/2015 1:24 PM, Corinna Vinschen wrote:
> Hi Sebastian,
> On Mar 13 11:00, Sebastian Huber wrote:
>> Merge parts of the latest <sys/time.h> from FreeBSD to Newlib.  This has
>> two reasons.
> This patch also allowed to remove a Cygwin specific piece of code.
> I now pushed your patch as well as the Cygwin ones.
> Thanks,
> Corinna

with the current settings, on cygwin with _GNU_SOURCE on

bintime_mul(struct bintime *_bt, u_int _x)
is included but

u_int is not defined

make[1]: Entering directory 
-I/pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9    -Wall 
-Wshadow -fno-builtin -Wextra -Wsign-compare -Wextra 
-Wno-unused-parameter -Wno-unused-function  -D_GNU_SOURCE 
-DXD3_MAIN=1  -DXD3_DEBUG=0 -ggdb -O2 -pipe 
-MT xdelta3-xdelta3.o -MD -MP -MF .deps/xdelta3-xdelta3.Tpo -c -o 
xdelta3-xdelta3.o `test -f 'xdelta3.c' || echo 
In file included from 
/usr/include/sys/time.h:105:34: error: unknown type name ‘u_int’
  bintime_mul(struct bintime *_bt, u_int _x)
Makefile:657: recipe for target 'xdelta3-xdelta3.o' failed
make[1]: *** [xdelta3-xdelta3.o] Error 1
make[1]: Leaving directory 
Makefile:486: recipe for target 'all' failed
make: *** [all] Error 2

More information about the Newlib mailing list