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>
This commit is contained in:
parent
82503258ff
commit
6d5fa70976
|
@ -1154,7 +1154,7 @@ create_data_link_info(int dlt)
|
||||||
return data_link_info;
|
return data_link_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_BONDING
|
#if defined(HAVE_BONDING) && defined(HAVE_PCAP_CREATE)
|
||||||
static gboolean
|
static gboolean
|
||||||
is_linux_bonding_device(const char *ifname)
|
is_linux_bonding_device(const char *ifname)
|
||||||
{
|
{
|
||||||
|
@ -1185,7 +1185,7 @@ is_linux_bonding_device(const char *ifname)
|
||||||
close(fd);
|
close(fd);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#else
|
#elif defined(HAVE_PCAP_CREATE)
|
||||||
static gboolean
|
static gboolean
|
||||||
is_linux_bonding_device(const char *ifname _U_)
|
is_linux_bonding_device(const char *ifname _U_)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue