]> xenbits.xensource.com Git - libvirt.git/commitdiff
daemon: Fix the wrong macro name
authorOsier Yang <jyang@redhat.com>
Fri, 20 Jul 2012 14:25:17 +0000 (22:25 +0800)
committerEric Blake <eblake@redhat.com>
Tue, 24 Jul 2012 21:45:20 +0000 (15:45 -0600)
WITH_INTERFACE is not defined, it should be WITH_NETCF there to load
the interface driver.

Eric posted patch weeks ago to resolve the problems in the whole
build system, but it's not finalised yet:

https://www.redhat.com/archives/libvir-list/2012-June/msg01299.html

I'm going to simply fix the wrong macro name here so that the
interface driver could loaded, and continue the work on the listing
API for interface driver.

daemon/libvirtd.c
tests/virdrivermoduletest.c

index a7bb9ddb28bcb8aae37f8d0a2052d0f410083466..ffbe067b18620c0acfae6dae43141c5a3c1c86fa 100644 (file)
@@ -378,7 +378,7 @@ static void daemonInitialize(void)
 # ifdef WITH_NWFILTER
     virDriverLoadModule("nwfilter");
 # endif
-# ifdef WITH_INTERFACE
+# ifdef WITH_NETCF
     virDriverLoadModule("interface");
 # endif
 # ifdef WITH_QEMU
index 8762de435fe236317da7ba68704644249d45ba3d..4d6e91e619ffb7b90bbd7027cc40de96c24439a1 100644 (file)
@@ -79,7 +79,7 @@ mymain(void)
 #ifdef WITH_NWFILTER
     TEST("nwfilter", NULL);
 #endif
-#ifdef WITH_INTERFACE
+#ifdef WITH_NETCF
     TEST("interface", NULL);
 #endif
 #ifdef WITH_QEMU