From 8afa208ffbb9ecc1b6195aef20d269e2fefd88d3 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Fri, 24 Oct 2008 00:42:09 +0000 Subject: Windows build: #include winsock2.h only when needed. #include winsock2.h pulls in about 90 distinct .h files and about 140 total .h files. Currently winsock2.h is (mostly unnecessarily) included for each dissector via packet.h/wtap.h. This patch removes #include winsock2.h from wtap.h and then includes winsock2.h (or windows.h) in the few specific places required. With this patch, my Windows Wireshark build takes about 30% less time. svn path=/trunk/; revision=26535 --- epan/dissectors/packet-frame.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'epan/dissectors/packet-frame.c') diff --git a/epan/dissectors/packet-frame.c b/epan/dissectors/packet-frame.c index d37d073d62..1077373482 100644 --- a/epan/dissectors/packet-frame.c +++ b/epan/dissectors/packet-frame.c @@ -27,6 +27,11 @@ # include "config.h" #endif +#ifdef _MSC_VER +#include +#endif + + #include #include #include -- cgit v1.2.3