From: Michal Privoznik Date: Wed, 27 Jan 2016 08:49:54 +0000 (+0100) Subject: virnetdevmacvlan: Provide stubs for build without macvtap X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=720bc953f8e2b0c85e708eebf1896d241a5d7d1d;p=libvirt.git virnetdevmacvlan: Provide stubs for build without macvtap In 370608b4c76f we have introduced two new internal APIs. However, there are no stubs for build without macvtap. Therefore build on systems lacking macvtap support (e.g. mingw or freebds) fails when trying to link. Signed-off-by: Michal Privoznik --- diff --git a/src/util/virnetdevmacvlan.c b/src/util/virnetdevmacvlan.c index da71eef9e0..24091135f9 100644 --- a/src/util/virnetdevmacvlan.c +++ b/src/util/virnetdevmacvlan.c @@ -1330,4 +1330,19 @@ int virNetDevMacVLanVPortProfileRegisterCallback(const char *ifname ATTRIBUTE_UN _("Cannot create macvlan devices on this platform")); return -1; } + +int virNetDevMacVLanReleaseName(const char *name ATTRIBUTE_UNUSED) +{ + virReportSystemError(ENOSYS, "%s", + _("Cannot create macvlan devices on this platform")); + return -1; +} + +int virNetDevMacVLanReserveName(const char *name ATTRIBUTE_UNUSED, + bool quietFail ATTRIBUTE_UNUSED) +{ + virReportSystemError(ENOSYS, "%s", + _("Cannot create macvlan devices on this platform")); + return -1; +} #endif /* ! WITH_MACVTAP */