mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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:
parent
a92bb087b3
commit
830344d6e7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user