diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-10-31 07:57:22 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-10-31 07:57:22 +0000 |
commit | 4c858d1ae7edb290fc7faf67a8485367d3aaf2d7 (patch) | |
tree | 048541113e59d3ef1bc99955809d6637f0600d43 /util.c | |
parent | 0247fbeb1554b58b434f7c8722d4b7ba3bcc5013 (diff) | |
download | wireshark-4c858d1ae7edb290fc7faf67a8485367d3aaf2d7.tar.gz wireshark-4c858d1ae7edb290fc7faf67a8485367d3aaf2d7.tar.bz2 wireshark-4c858d1ae7edb290fc7faf67a8485367d3aaf2d7.zip |
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.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |