From 3771a790b7b9ffccfa15130f15ebe2da966edfeb Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Mon, 29 Feb 2016 08:14:03 -0500 Subject: Fix randpktdump build in Windows. Change-Id: If749635d771443542285a74f05f37156123b2991 Reviewed-on: https://code.wireshark.org/review/14238 Reviewed-by: Michael Mann --- extcap/randpktdump.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extcap/randpktdump.c') diff --git a/extcap/randpktdump.c b/extcap/randpktdump.c index 316822d532..2b44b38381 100644 --- a/extcap/randpktdump.c +++ b/extcap/randpktdump.c @@ -163,15 +163,15 @@ int main(int argc, char *argv[]) wtap_dumper* savedump; int i; +#ifdef _WIN32 + WSADATA wsaData; +#endif /* _WIN32 */ + extcap_parameters * extcap_conf = g_new0(extcap_parameters, 1); extcap_base_set_util_info(extcap_conf, RANDPKTDUMP_VERSION_MAJOR, RANDPKTDUMP_VERSION_MINOR, RANDPKTDUMP_VERSION_RELEASE, NULL); extcap_base_register_interface(extcap_conf, RANDPKT_EXTCAP_INTERFACE, "Random packet generator", 147, "Generator dependent DLT"); -#ifdef _WIN32 - WSADATA wsaData; -#endif /* _WIN32 */ - if (argc == 1) { help(argv[0]); return EXIT_FAILURE; -- cgit v1.2.1