aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-10-31 07:57:22 +0000
committerGuy Harris <guy@alum.mit.edu>2003-10-31 07:57:22 +0000
commit4c858d1ae7edb290fc7faf67a8485367d3aaf2d7 (patch)
tree048541113e59d3ef1bc99955809d6637f0600d43 /util.c
parent0247fbeb1554b58b434f7c8722d4b7ba3bcc5013 (diff)
Include <windows.h> so that OSVERSIONINFO and the like are defined on
Windows. svn path=/trunk/; revision=8841
Diffstat (limited to 'util.c')
-rw-r--r--util.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/util.c b/util.c
index fa731361b0..4d754af1de 100644
--- a/util.c
+++ b/util.c
@@ -1,7 +1,7 @@
/* util.c
* Utility routines
*
- * $Id: util.c,v 1.69 2003/10/10 06:05:48 guy Exp $
+ * $Id: util.c,v 1.70 2003/10/31 07:57:22 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -64,6 +64,16 @@ typedef int mode_t; /* for win32 */
#include <pcap.h>
#endif /* HAVE_LIBPCAP */
+/*
+ * This has to come after the include of <pcap.h>, as the include of
+ * <pcap.h> might cause <winsock2.h> to be included, and if we've
+ * already included <winsock.h> as a result of including <windows.h>,
+ * we get a bunch of redefinitions.
+ */
+#ifdef HAVE_WINDOWS_H
+#include <windows.h>
+#endif
+
#ifdef HAVE_SOME_SNMP
#ifdef HAVE_NET_SNMP