mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-07 21:17:55 +03: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");
|
||||
|
||||
#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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user