summaryrefslogtreecommitdiff
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-06-23 10:32:36 +0000
committerGuy Harris <guy@alum.mit.edu>2002-06-23 10:32:36 +0000
commit73ef5a2753c0c585f45b0f1ba014e455907d417f (patch)
tree8ec2f7762a234f23f5b362bf99e86c209e43195a /epan
parent6ef2cc2b1f65e7d6b02a7ac32bf0ae5dc0d29f5c (diff)
downloadwireshark-73ef5a2753c0c585f45b0f1ba014e455907d417f.tar.gz
WinPcap 2.3's <pcap.h> includes <packet32.h>, and WinPcap 2.3's
<packet32.h> includes <winsock2.h>; we include that rather than <winsock.h>, to avoid errors due to conflicting declarations in <winsock.h> and <winsock2.h>. svn path=/trunk/; revision=5742
Diffstat (limited to 'epan')
-rw-r--r--epan/config.h.win324
-rw-r--r--epan/ftypes/ftypes.h6
-rw-r--r--epan/inet_aton.c4
-rw-r--r--epan/inet_ntop.c6
-rw-r--r--epan/inet_pton.c6
-rw-r--r--epan/packet.c6
-rw-r--r--epan/proto.h6
-rw-r--r--epan/strutil.h9
-rw-r--r--epan/to_str.c6
9 files changed, 26 insertions, 27 deletions
diff --git a/epan/config.h.win32 b/epan/config.h.win32
index 857af2d019..9733e2d1cb 100644
--- a/epan/config.h.win32
+++ b/epan/config.h.win32
@@ -1,4 +1,4 @@
-/* $Id: config.h.win32,v 1.9 2001/10/28 00:57:15 guy Exp $ */
+/* $Id: config.h.win32,v 1.10 2002/06/23 10:32:32 guy Exp $ */
/* config.h.win32 Generated manually. :-) */
/* config.h. Generated automatically by configure. */
/* config.h.in. Generated automatically from configure.in by autoheader. */
@@ -79,7 +79,7 @@
#endif
#define HAVE_WINDOWS_H 1
-#define HAVE_WINSOCK_H 1
+#define HAVE_WINSOCK2_H 1
#define HAVE_DIRECT_H 1
#define HAVE_IO_H 1
#define NEED_GETOPT_H 1
diff --git a/epan/ftypes/ftypes.h b/epan/ftypes/ftypes.h
index 82f13471ea..5589147fb9 100644
--- a/epan/ftypes/ftypes.h
+++ b/epan/ftypes/ftypes.h
@@ -1,7 +1,7 @@
/* ftypes.h
* Definitions for field types
*
- * $Id: ftypes.h,v 1.10 2002/05/09 23:50:32 gram Exp $
+ * $Id: ftypes.h,v 1.11 2002/06/23 10:32:35 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -113,8 +113,8 @@ ftype_can_le(enum ftenum ftype);
#include <epan/ipv4.h>
-#ifdef HAVE_WINSOCK_H
-#include <winsock.h>
+#ifdef HAVE_WINSOCK2_H
+#include <winsock2.h>
#endif
#include <epan/tvbuff.h>
diff --git a/epan/inet_aton.c b/epan/inet_aton.c
index 0ee19c6ab8..f101d10cd1 100644
--- a/epan/inet_aton.c
+++ b/epan/inet_aton.c
@@ -47,8 +47,8 @@ static char sccsid[] = "@(#)inet_addr.c 8.1 (Berkeley) 6/17/93";
#include <netinet/in.h>
#endif
-#ifdef HAVE_WINSOCK_H
-#include <winsock.h>
+#ifdef HAVE_WINSOCK2_H
+#include <winsock2.h>
#endif
#ifdef HAVE_ARPA_INET_H
diff --git a/epan/inet_ntop.c b/epan/inet_ntop.c
index 0f50bc761a..e2cfa13595 100644
--- a/epan/inet_ntop.c
+++ b/epan/inet_ntop.c
@@ -20,7 +20,7 @@
#endif
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$Id: inet_ntop.c,v 1.2 2001/10/28 01:55:10 guy Exp $";
+static char rcsid[] = "$Id: inet_ntop.c,v 1.3 2002/06/23 10:32:32 guy Exp $";
#endif /* LIBC_SCCS and not lint */
#ifdef HAVE_SYS_PARAM_H
@@ -35,8 +35,8 @@ static char rcsid[] = "$Id: inet_ntop.c,v 1.2 2001/10/28 01:55:10 guy Exp $";
#include <sys/socket.h>
#endif
-#ifdef HAVE_WINSOCK_H
-#include <winsock.h>
+#ifdef HAVE_WINSOCK2_H
+#include <winsock2.h>
#define EAFNOSUPPORT WSAEAFNOSUPPORT
#endif
diff --git a/epan/inet_pton.c b/epan/inet_pton.c
index 014f096b52..07d7c1af7c 100644
--- a/epan/inet_pton.c
+++ b/epan/inet_pton.c
@@ -20,7 +20,7 @@
#endif
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$Id: inet_pton.c,v 1.1 2000/10/14 04:31:26 gram Exp $";
+static char rcsid[] = "$Id: inet_pton.c,v 1.2 2002/06/23 10:32:32 guy Exp $";
#endif /* LIBC_SCCS and not lint */
#ifdef HAVE_SYS_PARAM_H
@@ -31,8 +31,8 @@ static char rcsid[] = "$Id: inet_pton.c,v 1.1 2000/10/14 04:31:26 gram Exp $";
#include <sys/types.h>
#endif
-#ifdef HAVE_WINSOCK_H
-#include <winsock.h>
+#ifdef HAVE_WINSOCK2_H
+#include <winsock2.h>
#define EAFNOSUPPORT WSAEAFNOSUPPORT
#endif
diff --git a/epan/packet.c b/epan/packet.c
index 0de8327619..d6a01b748d 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -1,7 +1,7 @@
/* packet.c
* Routines for packet disassembly
*
- * $Id: packet.c,v 1.72 2002/06/04 07:03:54 guy Exp $
+ * $Id: packet.c,v 1.73 2002/06/23 10:32:32 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -34,8 +34,8 @@
#include <sys/socket.h>
#endif
-#ifdef HAVE_WINSOCK_H
-#include <winsock.h>
+#ifdef HAVE_WINSOCK2_H
+#include <winsock2.h>
#endif
#include <glib.h>
diff --git a/epan/proto.h b/epan/proto.h
index ae1a9521ba..fe34faf64e 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -1,7 +1,7 @@
/* proto.h
* Definitions for protocol display
*
- * $Id: proto.h,v 1.32 2002/05/14 10:15:10 guy Exp $
+ * $Id: proto.h,v 1.33 2002/06/23 10:32:32 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -31,8 +31,8 @@
# include <varargs.h>
#endif
-#ifdef HAVE_WINSOCK_H
-# include <winsock.h>
+#ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
#endif
#include <glib.h>
diff --git a/epan/strutil.h b/epan/strutil.h
index 6b3599c9db..f334cb7dd4 100644
--- a/epan/strutil.h
+++ b/epan/strutil.h
@@ -1,12 +1,11 @@
/* strutil.h
* String utility definitions
*
- * $Id: strutil.h,v 1.6 2000/12/22 12:05:36 gram Exp $
+ * $Id: strutil.h,v 1.7 2002/06/23 10:32:32 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
- *
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -32,8 +31,8 @@
#include <sys/types.h> /* for u_char */
#endif
-#ifdef HAVE_WINSOCK_H
-# include <winsock.h> /* for u_char */
+#ifdef HAVE_WINSOCK2_H
+# include <winsock2.h> /* for u_char */
#endif
const u_char *find_line_end(const u_char *data, const u_char *dataend,
diff --git a/epan/to_str.c b/epan/to_str.c
index 642b0e26b7..6ea8d125b0 100644
--- a/epan/to_str.c
+++ b/epan/to_str.c
@@ -1,7 +1,7 @@
/* to_str.c
* Routines for utilities to convert various other types to strings.
*
- * $Id: to_str.c,v 1.13 2001/09/14 07:23:33 guy Exp $
+ * $Id: to_str.c,v 1.14 2002/06/23 10:32:32 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -33,8 +33,8 @@
# include <sys/types.h>
#endif
-#ifdef HAVE_WINSOCK_H
-# include <winsock.h> /* for "u_char" */
+#ifdef HAVE_WINSOCK2_H
+# include <winsock2.h> /* for "u_char" */
#endif
#ifdef NEED_SNPRINTF_H