]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Include <windows.h> to get Windows APIs declared and INVALID_HANDLE defined.
authorGuy Harris <[email protected]>
Mon, 13 Nov 2017 08:13:15 +0000 (00:13 -0800)
committerGuy Harris <[email protected]>
Mon, 13 Nov 2017 08:13:15 +0000 (00:13 -0800)
tcpdump.c

index 9fd0393f2a21a0d74253cf70410a5f802750251f..fe9864f54ac732dfbdef0c176c88a3badeac89a2 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -97,7 +97,9 @@ The Regents of the University of California.  All rights reserved.\n";
 #include <stdlib.h>
 #include <string.h>
 #include <limits.h>
-#ifndef _WIN32
+#ifdef _WIN32
+#include <windows.h>
+#else
 #include <sys/time.h>
 #include <sys/wait.h>
 #include <sys/resource.h>