This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Possible problem with timercmp in sys/time.h


Trying to compile icewm-1.0.6 in Win2k using Cygwin.  I get this weird error
about a parse error in yapp.cc:

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?

Thanks.



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]