]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
netdev: fix build on FreeBSD
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Wed, 22 Jul 2015 15:24:34 +0000 (18:24 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Wed, 22 Jul 2015 15:37:00 +0000 (18:37 +0300)
commit830344d6e714b1eb28f892a218ae67d99d6b249a
tree0b2c54333706479b693989d7a85c1f4fc7f7328c
parenta92bb087b3320595bd0a9007b22f03322f602296
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.
src/util/virnetdev.c