netdev: fix build on FreeBSD

Commit ac3ed20 breaks build on FreeBSD with:

  CC       util/libvirt_util_la-virnetdev.lo
util/virnetdev.c:2967:1: error: unused function 'virNetDevRDMAFeature' [-Werror,-Wunused-function]
virNetDevRDMAFeature(const char *ifname,
^

So hide virNetDevRDMAFeature function under the #ifdef 'SIOCETHTOOL'
and 'HAVE_STRUCT_IFREQ' section.

Pushed under the build breaker rule.
This commit is contained in:
Roman Bogorodskiy 2015-07-22 18:24:34 +03:00
parent a92bb087b3
commit 830344d6e7

View File

@ -2952,6 +2952,7 @@ int virNetDevGetRxFilter(const char *ifname,
return ret;
}
#if defined(SIOCETHTOOL) && defined(HAVE_STRUCT_IFREQ)
/**
* virNetDevRDMAFeature
@ -3014,7 +3015,6 @@ virNetDevRDMAFeature(const char *ifname,
return ret;
}
#if defined(SIOCETHTOOL) && defined(HAVE_STRUCT_IFREQ)
/**
* virNetDevSendEthtoolIoctl