]> xenbits.xensource.com Git - libvirt.git/commitdiff
Use the DEFAULT_DRIVER_DIR macro
authorJán Tomko <jtomko@redhat.com>
Wed, 1 Apr 2015 10:38:42 +0000 (12:38 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 2 Apr 2015 08:27:56 +0000 (10:27 +0200)
Unused since commit bc2f42a0.

Move it under the WITHOUT_DRIVER_MODULES #ifdef
and start using it again.

src/driver.c

index db03438ba3619f6f0c9bf4cd59886e314cade992..2985538de3cda980022b011b15c1bb4b478e6440 100644 (file)
 
 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;