]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump.c
Include <windows.h> to get Windows APIs declared and INVALID_HANDLE defined.
[tcpdump] / 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>