aboutsummaryrefslogtreecommitdiffstats
path: root/capture-pcap-util-unix.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-09-08 19:25:36 +0000
committerBill Meier <wmeier@newsguy.com>2013-09-08 19:25:36 +0000
commitfb75b6867e2181095ad023e09cafa72ab706a94c (patch)
tree1d817afd23faeee199367d42d1c1e9c36d7b7e80 /capture-pcap-util-unix.c
parent15f1dd9b901bab65471669c622363baeac1050b8 (diff)
Use a bunch of #includes only when apparently needed.
svn path=/trunk/; revision=51843
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..b181186cd8 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/pcap.h>
+
+#endif /* HAVE_PCAP_FINDALLDEVS */
+
+#include "capture_ifinfo.h"
#include "capture-pcap-util-int.h"
#ifndef HAVE_PCAP_FINDALLDEVS