On Thu, Oct 30, 2003 at 01:55:27PM +0100, Lars Ruoff wrote:
> #defining HAVE_ZLIB doesnt help.
> In fact the macro is used nowhere in the code!

He meant "HAVE_LIBZ".

> #ifdef HAVE_WINDOWS_H
> #include <windows.h>
> #endif
> in util.c fixes the problem, indeed.

...although when I tried it, I got the winsock.h vs. winsock2.h problems
if I put it after

        #ifdef HAVE_SYS_STAT_H
        #include <sys/stat.h>
        #endif

(if you put it there, and didn't get those errors, is HAVE_LIBPCAP
defined?  If not, you won't include pcap.h, and that's what would
include winsock2.h), but it worked fine if I put it after

        #ifdef HAVE_LIBPCAP 
        #include <pcap.h>
        #endif /* HAVE_LIBPCAP */

I've checked in a change to do that.

Reply via email to