From: Roman Bogorodskiy Date: Wed, 22 Jul 2015 15:24:34 +0000 (+0300) Subject: netdev: fix build on FreeBSD X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=830344d6e714b1eb28f892a218ae67d99d6b249a;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git 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. --- diff --git a/src/util/virnetdev.c b/src/util/virnetdev.c index 8981a845c..7d91e2c0f 100644 --- a/src/util/virnetdev.c +++ b/src/util/virnetdev.c @@ -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