summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOsier Yang <jyang@redhat.com>2012-07-20 22:25:17 +0800
committerEric Blake <eblake@redhat.com>2012-07-24 15:45:20 -0600
commit98518178a235532c280b4a18a85d7b1323d09c7f (patch)
tree30209a4fd4020036ffe5fcde5f966e3e9076e2f6
parentvirsh: Clarify that memtune parameters may be rounded in the man page (diff)
downloadlibvirt-98518178a235532c280b4a18a85d7b1323d09c7f.tar.gz
libvirt-98518178a235532c280b4a18a85d7b1323d09c7f.tar.bz2
libvirt-98518178a235532c280b4a18a85d7b1323d09c7f.zip
daemon: Fix the wrong macro name
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.
-rw-r--r--daemon/libvirtd.c2
-rw-r--r--tests/virdrivermoduletest.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c
index a7bb9ddb2..ffbe067b1 100644
--- a/daemon/libvirtd.c
+++ b/daemon/libvirtd.c
@@ -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
diff --git a/tests/virdrivermoduletest.c b/tests/virdrivermoduletest.c
index 8762de435..4d6e91e61 100644
--- a/tests/virdrivermoduletest.c
+++ b/tests/virdrivermoduletest.c
@@ -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