aboutsummaryrefslogtreecommitdiffstats
path: root/capture-pcap-util-unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'capture-pcap-util-unix.c')
-rw-r--r--capture-pcap-util-unix.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/capture-pcap-util-unix.c b/capture-pcap-util-unix.c
index 31def40f78..f0b6825ce0 100644
--- a/capture-pcap-util-unix.c
+++ b/capture-pcap-util-unix.c
@@ -28,6 +28,8 @@
#ifdef HAVE_LIBPCAP
+#ifndef HAVE_PCAP_FINDALLDEVS
+
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
@@ -56,8 +58,15 @@ struct rtentry;
# include <sys/sockio.h>
#endif
-#include "capture_ifinfo.h"
#include "capture-pcap-util.h"
+
+#else
+
+#include <pcap.h>
+
+#endif /* HAVE_PCAP_FINDALLDEVS */
+
+#include "capture_ifinfo.h"
#include "capture-pcap-util-int.h"
#ifndef HAVE_PCAP_FINDALLDEVS