Luca changed sleep() to a macro to encapsulate behavior that he wasn't previously aware of, which caused it to prematurely wake up from the interval.
Humm... there is a defn unique to MinGW in ntop_win32.h... so you probably need to ifndef WIN32 the definition in ntop.h. Try this patch (it's patch -p0 'cause it's just a test) and let me know: --- ntop.h.save Wed May 1 14:42:15 2002 +++ ntop.h Wed May 1 14:42:45 2002 @@ -2107,5 +2107,7 @@ #endif +#ifndef WIN32 #define sleep(a) ntop_sleep(a) +#endif #endif /* NTOP_H */ (If that's right, the defn in util.c needs to be ifndefed too...) -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jac Engel Sent: Wednesday, May 01, 2002 12:03 PM To: [EMAIL PROTECTED] Subject: [Ntop] Mingw not supported Is NTOP compiling under MINGW not supported anymore ? Latest CVS 01-05-02 error : gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ic:/mingw/gd clude -Ic:/mingw/wpdpack/include -Ic:/mingw/wpdpack/include/NET -I../gdchar c -o emitter.o -c emitter.c In file included from emitter.c:21: ntop.h:2112: warning: `sleep' redefined ntop_win32.h:40: warning: this is the location of the previous definition make: *** No rule to make target `event.o', needed by `ntop'. Stop. Jac _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
