mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 09:53:10 +00:00
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:
parent
a0482396d7
commit
a336d5bd89
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user