summaryrefslogtreecommitdiff
path: root/extcap/randpktdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'extcap/randpktdump.c')
-rw-r--r--extcap/randpktdump.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/extcap/randpktdump.c b/extcap/randpktdump.c
index d45ac46e29..689db6ac01 100644
--- a/extcap/randpktdump.c
+++ b/extcap/randpktdump.c
@@ -288,14 +288,16 @@ int main(int argc, char *argv[])
wtap_dumper* savedump;
int i;
+#ifdef _WIN32
+ WSADATA wsaData;
+#endif /* _WIN32 */
+
if (argc == 1) {
help(argv[0]);
return EXIT_FAILURE;
}
#ifdef _WIN32
- WSADATA wsaData;
-
attach_parent_console();
#endif /* _WIN32 */