[PATCH 2/6] Use the DEFAULT_DRIVER_DIR macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Unused since commit bc2f42a0.

Move it under the WITHOUT_DRIVER_MODULES #ifdef
and start using it again.
---
 src/driver.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/driver.c b/src/driver.c
index db03438..2985538 100644
--- a/src/driver.c
+++ b/src/driver.c
@@ -35,13 +35,13 @@
 
 VIR_LOG_INIT("driver");
 
-#define DEFAULT_DRIVER_DIR LIBDIR "/libvirt/connection-driver"
 
 #ifdef WITH_DRIVER_MODULES
 
 /* XXX re-implment this for other OS, or use libtools helper lib ? */
 
 # include <dlfcn.h>
+# define DEFAULT_DRIVER_DIR LIBDIR "/libvirt/connection-driver"
 
 void *
 virDriverLoadModule(const char *name)
@@ -57,7 +57,7 @@ virDriverLoadModule(const char *name)
                                             "libvirt_driver_",
                                             ".so",
                                             abs_topbuilddir "/src/.libs",
-                                            LIBDIR "/libvirt/connection-driver",
+                                            DEFAULT_DRIVER_DIR,
                                             "LIBVIRT_DRIVER_DIR")))
         return NULL;
 
-- 
2.0.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]