aboutsummaryrefslogtreecommitdiffstats
path: root/capture_wpcap_packet.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-06 00:48:11 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-06 00:48:11 +0000
commitf311631d854b4548eca28aace4085271e41451a5 (patch)
treecb213a1635a6bc748df465bf0cb22ed785bfc606 /capture_wpcap_packet.c
parent13c562d79aebe0a2a8067f5c775ca44d9df74c6b (diff)
fix sockaddr_storage problem for MSVC 7.1 (hmmm, maybe it's a platform SDK issue - time will tell)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20331 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_wpcap_packet.c')
-rw-r--r--capture_wpcap_packet.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/capture_wpcap_packet.c b/capture_wpcap_packet.c
index d055a72d59..901e7f1b1d 100644
--- a/capture_wpcap_packet.c
+++ b/capture_wpcap_packet.c
@@ -64,11 +64,13 @@ typedef unsigned short eth_sa_family_t;
ETH_SS_PAD1SIZE + ETH_SS_ALIGNSIZE))
/* sockaddr_storage problem with different MSVC versions
- * - MSVC 6 (1200) doesn't define this
- * - MSVC 7 (1300) unknown
- * - MSVC 8 (1400) does */
+ * - MSVC 6 (1200) doesn't define this
+ * - MSVC 7 (1300) unknown
+ * - MSVC 7.1 (1310) does
+ * - MSVC 8 (1400) does */
/* we might need to tweak this #if, see version_info for _MSC_VER values */
-#if _MSC_VER < 1400
+/* XXX - is this more of a Platform SDK issue? */
+#if _MSC_VER < 1310
struct sockaddr_storage {
eth_sa_family_t __ss_family; /* address family */
/* Following fields are implementation specific */