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:
Jeff Morriss 2015-05-27 21:15:50 -04:00
parent 82503258ff
commit 6d5fa70976
1 changed files with 2 additions and 2 deletions

View File

@ -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_)
{