Possible problem with timercmp in sys/time.h

Christopher Faylor cgf@redhat.com
Fri Apr 20 20:54:00 GMT 2001


On Fri, Apr 20, 2001 at 04:40:18AM -0400, Eugene Ciloci wrote:
>make[1]: Entering directory `/cygdrive/c/Misc/ICEWM-~1.6/src'
>gcc    -DLIBDIR='"/cygdrive/c/Misc/iceWM/lib/X11/icewm"' -DCFGDIR='"/cygdriv
>e/c/
>Misc/iceWM/etc/X11/icewm"' -DLOCDIR='""' -DKDEDIR='"/cygdrive/c/Misc/iceWM/s
>hare
>"' -DPACKAGE='"icewm"' -DVERSION='"1.0.6"' -DEXEEXT='""' -DICEWMEXE='"icewm"
>EXEE
>XT' -fpermissive -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Wmissin
>g-pr
>ototypes -Wmissing-declarations -Winline -Woverloaded-virtual -W -fno-except
>ions
> -fno-rtti -g -O2  -I/usr/X11R6/include -DHAVE_CONFIG_H  -c yapp.cc
>In file included from /usr/include/fcntl.h:4,
>                 from sysdep.h:43,
>                 from yapp.cc:11:
>/usr/include/sys/fcntl.h:51: warning: `O_BINARY' redefined
>sysdep.h:18: warning: this is the location of the previous definition
>/usr/include/sys/fcntl.h:52: warning: `O_TEXT' redefined
>sysdep.h:15: warning: this is the location of the previous definition
>yapp.cc: In method `void YApplication::getTimeout(timeval *)':
>yapp.cc:679: parse error before `>'
>yapp.cc:684: confused by earlier errors, bailing out
>make[1]: *** [yapp.o] Error 1
>
>The offending line is:
>[yapp.cc:679] if (t->isRunning() && (fFirst || timercmp(timeout,
>&t->timeout, >))) {
>
>Someone on the IceWM mailing list told me to modify the time.h file.  But
>the macro definition looks like it should work for '>'.
>Any suggestions?

Listen to the voices on the IceWM mailing list.  Apparently they can
read header files better than you.

Or, wait until the next release of cygwin.  I've turned on timercmp in sys/time.h.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list