aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
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_)
{