]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: fix compilation without macvtap
authorEric Blake <eblake@redhat.com>
Tue, 25 May 2010 22:44:05 +0000 (16:44 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 25 May 2010 22:51:12 +0000 (16:51 -0600)
* src/util/macvtap.c: (associatePortProfileId)
(disassociatePortProfileId): Move inside HAVE_MACVTAP
conditional.
Reported by Eduardo Otubo.

src/util/macvtap.c

index 715f329963f9d267f32f043265fcf27e876dbcc9..8d6a79e0a364b59c8c5594e71263f263eb958255 100644 (file)
@@ -718,8 +718,6 @@ delMacvtap(const char *ifname,
     }
 }
 
-#endif
-
 
 /**
  * associatePortProfile
@@ -801,3 +799,5 @@ disassociatePortProfileId(const char *macvtap_ifname,
 
     return rc;
 }
+
+#endif /* WITH_MACVTAP */