提交 a336d5bd 编写于 作者: J Ján Tomko

Use the DEFAULT_DRIVER_DIR macro

Unused since commit bc2f42a0.

Move it under the WITHOUT_DRIVER_MODULES #ifdef
and start using it again.
上级 a0482396
...@@ -35,13 +35,13 @@ ...@@ -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) ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册