aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2015-05-27 21:15:50 -0400
committerJeff Morriss <jeff.morriss.ws@gmail.com>2015-05-28 01:26:12 +0000
commit6d5fa70976c28a7e967ff7db3ade8733663f6e2a (patch)
tree4bd1fdccddd74ef7dddd81667c1aa6fdd4d48391 /dumpcap.c
parent82503258ffe79c38782911e660069c52c5a9c416 (diff)
is_linux_bonding_device() is only used if we HAVE_PCAP_CREATE so only define it
if we HAVE_PCAP_CREATE. Change-Id: Ic4eb6e69bde7d244b68a9fd97f66682eda6bdf91 Reviewed-on: https://code.wireshark.org/review/8667 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 80eecd37e0..2a59a87d5e 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -1154,7 +1154,7 @@ create_data_link_info(int dlt)
return data_link_info;
}
-#ifdef HAVE_BONDING
+#if defined(HAVE_BONDING) && defined(HAVE_PCAP_CREATE)
static gboolean
is_linux_bonding_device(const char *ifname)
{
@@ -1185,7 +1185,7 @@ is_linux_bonding_device(const char *ifname)
close(fd);
return FALSE;
}
-#else
+#elif defined(HAVE_PCAP_CREATE)
static gboolean
is_linux_bonding_device(const char *ifname _U_)
{