summaryrefslogtreecommitdiff
path: root/tcpdump.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-11-13 00:13:15 -0800
committerGuy Harris <guy@alum.mit.edu>2017-11-13 00:13:15 -0800
commit568927a2bce300035cf25e9cd387986f4a72b10c (patch)
treeae9ef18c30a4fc9a854f36053f9b384ddd26652a /tcpdump.c
parentbfb7669b376344e4a5f0459138284cc305678ccd (diff)
downloadtcpdump-568927a2bce300035cf25e9cd387986f4a72b10c.tar.gz
Include <windows.h> to get Windows APIs declared and INVALID_HANDLE defined.
Diffstat (limited to 'tcpdump.c')
-rw-r--r--tcpdump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tcpdump.c b/tcpdump.c
index 9fd0393f..fe9864f5 100644
--- 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>