Use the DEFAULT_DRIVER_DIR macro

Unused since commit bc2f42a0.

Move it under the WITHOUT_DRIVER_MODULES #ifdef
and start using it again.
This commit is contained in:
Ján Tomko 2015-04-01 12:38:42 +02:00
parent a0482396d7
commit a336d5bd89

View File

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