aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/capture.c b/capture.c
index 50336593e7..db8ff029ef 100644
--- a/capture.c
+++ b/capture.c
@@ -28,6 +28,10 @@
#ifdef HAVE_LIBPCAP
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#include <stdlib.h>
#include <string.h>
#include <ctype.h>