From 8d9c7a93bcbad1cb80134715ebc88f8534e6131e Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 25 May 2010 16:44:05 -0600 Subject: [PATCH] build: fix compilation without macvtap * src/util/macvtap.c: (associatePortProfileId) (disassociatePortProfileId): Move inside HAVE_MACVTAP conditional. Reported by Eduardo Otubo. --- src/util/macvtap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/macvtap.c b/src/util/macvtap.c index 715f329963..8d6a79e0a3 100644 --- a/src/util/macvtap.c +++ b/src/util/macvtap.c @@ -718,8 +718,6 @@ delMacvtap(const char *ifname, } } -#endif - /** * associatePortProfile @@ -801,3 +799,5 @@ disassociatePortProfileId(const char *macvtap_ifname, return rc; } + +#endif /* WITH_MACVTAP */