I downloaded 2 recent nightly tarballs and encountered the same
compilation problem.
I hunted down the problem...
first,
wtap-int.h includes zlib.h which includes windows.h which includes
winsock.h
then,
wtap-int.h includes wtap.h which includes winsock2.h which must be
included before winsock.h
The attached diff moves the #include "wtap.h" to before the #include
<zlib.h>
--- wtap-int.h 2002-08-28 16:30:46.000000000 -0400
+++ wtap-int.h.new 2002-10-10 12:37:49.000000000 -0400
@@ -31,6 +31,8 @@
#include <stdio.h>
#include <time.h>
+#include "wtap.h"
+
#ifdef HAVE_LIBZ
#include <zlib.h>
#define FILE_T gzFile
@@ -38,8 +40,6 @@
#define FILE_T FILE *
#endif /* HAVE_LIBZ */
-#include "wtap.h"
-
/* Information for a compressed Sniffer data stream. */
typedef struct {
unsigned char *buf; /* buffer into which we uncompress data */