|
From: Florian F. <sou...@no...> - 2008-11-28 09:02:47
|
From: Florian Forster <oc...@ve...>
---
src/dbi_main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/dbi_main.c b/src/dbi_main.c
index e103dfc..9b2d80a 100644
--- a/src/dbi_main.c
+++ b/src/dbi_main.c
@@ -1309,10 +1309,14 @@ static dbi_driver_t *_get_driver(const char *filename, dbi_inst_t *inst) {
if (DLSYM_HANDLE) { /* most OSes */
symhandle = dlhandle;
}
+#ifdef RTLD_DEFAULT
else { /* the BSDs */
/* symhandle = RTLD_NEXT; */
symhandle = RTLD_DEFAULT;
}
+#else
+ else { return (NULL); }
+#endif
while (custom_functions_list && custom_functions_list[idx] != NULL) {
custom = malloc(sizeof(dbi_custom_function_t));
--
1.5.6.5
|