time.h missing scope ?
Corinna Vinschen
corinna-cygwin@cygwin.com
Sun Jul 5 14:14:00 GMT 2015
Hi Marco,
On Jul 5 14:10, Marco Atzeri wrote:
>
> u_int is defined in
> /usr/include/sys/types.h
> and
> /usr/include/sys/time.h
> includes it, but it is coveread by a
>
> # ifndef _POSIX_SOURCE
>
>
>
>
> make[1]: Entering directory
> '/cygdrive/e/cyg_pub/devel/xdelta/xdelta-3.0.9-1.i686/build'
> gcc -DHAVE_CONFIG_H -I.
> -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 -DREGRESSION_TEST=1 -DSECONDARY_DJW=1
> -DSECONDARY_FGK=1 -DXD3_POSIX=1 -DXD3_MAIN=1 -DXD3_DEBUG=0 -ggdb -O2 -pipe
> -Wimplicit-function-declaration -fdebug-prefix-map=/pub/devel/xdelta/xdelta-3.0.9-1.i686/build=/usr/src/debug/xdelta-3.0.9-1 -fdebug-prefix-map=/pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9=/usr/src/debug/xdelta-3.0.9-1
> -MT xdelta3-xdelta3.o -MD -MP -MF .deps/xdelta3-xdelta3.Tpo -c -o
> xdelta3-xdelta3.o `test -f 'xdelta3.c' || echo
> '/pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9/'`xdelta3.c
> In file included from
> /pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9/xdelta3.h:43:0,
> from
> /pub/devel/xdelta/xdelta-3.0.9-1.i686/src/xdelta3-3.0.9/xdelta3.c:267:
> /usr/include/sys/time.h:105:34: error: unknown type name ‘u_int’
> bintime_mul(struct bintime *_bt, u_int _x)
> ^
How come? Is _POSIX_SOURCE set somehow? Maybe the definitions
of u_int etc. should use #ifdef _BSD_VISIBLE instead...
Would you mind to report this on the newlib list as reply to
https://sourceware.org/ml/newlib/2015/msg00225.html
?
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150705/6b598e71/attachment.sig>
More information about the Cygwin
mailing list