mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-04 20:15:19 +00:00
build: fix compilation without struct ifreq
Detected on Cygwin. Broken in commit387117ad
. * src/util/virnetdev.c (virNetDevValidateConfig) (virNetDevReplaceNetConfig): Fix prototypes. * src/util/virnetlink.c (virNetlinkEventAddClient) (virNetlinkEventRemoveClient): Likewise. (cherry picked from commit68a97bd85f
)
This commit is contained in:
parent
40b0176129
commit
d4ffc36fbc
@ -929,7 +929,7 @@ int virNetDevValidateConfig(const char *ifname,
|
|||||||
}
|
}
|
||||||
#else /* ! HAVE_STRUCT_IFREQ */
|
#else /* ! HAVE_STRUCT_IFREQ */
|
||||||
int virNetDevValidateConfig(const char *ifname ATTRIBUTE_UNUSED,
|
int virNetDevValidateConfig(const char *ifname ATTRIBUTE_UNUSED,
|
||||||
const unsigned char *macaddr ATTRIBUTE_UNUSED,
|
const virMacAddrPtr macaddr ATTRIBUTE_UNUSED,
|
||||||
int ifindex ATTRIBUTE_UNUSED)
|
int ifindex ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
virReportSystemError(ENOSYS, "%s",
|
virReportSystemError(ENOSYS, "%s",
|
||||||
@ -1663,7 +1663,7 @@ virNetDevLinkDump(const char *ifname ATTRIBUTE_UNUSED,
|
|||||||
int
|
int
|
||||||
virNetDevReplaceNetConfig(char *linkdev ATTRIBUTE_UNUSED,
|
virNetDevReplaceNetConfig(char *linkdev ATTRIBUTE_UNUSED,
|
||||||
int vf ATTRIBUTE_UNUSED,
|
int vf ATTRIBUTE_UNUSED,
|
||||||
const unsigned char *macaddress ATTRIBUTE_UNUSED,
|
const virMacAddrPtr macaddress ATTRIBUTE_UNUSED,
|
||||||
int vlanid ATTRIBUTE_UNUSED,
|
int vlanid ATTRIBUTE_UNUSED,
|
||||||
char *stateDir ATTRIBUTE_UNUSED)
|
char *stateDir ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
|
@ -672,7 +672,7 @@ int virNetlinkEventServiceLocalPid(void)
|
|||||||
int virNetlinkEventAddClient(virNetlinkEventHandleCallback handleCB ATTRIBUTE_UNUSED,
|
int virNetlinkEventAddClient(virNetlinkEventHandleCallback handleCB ATTRIBUTE_UNUSED,
|
||||||
virNetlinkEventRemoveCallback removeCB ATTRIBUTE_UNUSED,
|
virNetlinkEventRemoveCallback removeCB ATTRIBUTE_UNUSED,
|
||||||
void *opaque ATTRIBUTE_UNUSED,
|
void *opaque ATTRIBUTE_UNUSED,
|
||||||
const unsigned char *macaddr ATTRIBUTE_UNUSED)
|
const virMacAddrPtr macaddr ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
netlinkError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
|
netlinkError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
|
||||||
return -1;
|
return -1;
|
||||||
@ -682,7 +682,7 @@ int virNetlinkEventAddClient(virNetlinkEventHandleCallback handleCB ATTRIBUTE_UN
|
|||||||
* virNetlinkEventRemoveClient: unregister a callback from a netlink monitor
|
* virNetlinkEventRemoveClient: unregister a callback from a netlink monitor
|
||||||
*/
|
*/
|
||||||
int virNetlinkEventRemoveClient(int watch ATTRIBUTE_UNUSED,
|
int virNetlinkEventRemoveClient(int watch ATTRIBUTE_UNUSED,
|
||||||
const unsigned char *macaddr ATTRIBUTE_UNUSED)
|
const virMacAddrPtr macaddr ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
netlinkError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
|
netlinkError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user