summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2008-12-15 19:18:22 +0100
committerMartin Nagy <mnagy@redhat.com>2009-02-11 20:40:41 +0100
commit91cc19721a9adafa8710b39ece79f2ffec664a4c (patch)
tree41281705b612116cf356ddc353d87c98c415bf06
parentc76f8c86f453ad60719d31289b04f13ac244114c (diff)
downloadbind_dynamic-91cc19721a9adafa8710b39ece79f2ffec664a4c.tar.gz
bind_dynamic-91cc19721a9adafa8710b39ece79f2ffec664a4c.tar.xz
bind_dynamic-91cc19721a9adafa8710b39ece79f2ffec664a4c.zip
Test for HAVE_DLFCN_H to make sure we have dlfcn.h
-rw-r--r--lib/dns/dynamic_db.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/dns/dynamic_db.c b/lib/dns/dynamic_db.c
index 4e54bc6..5c4ea74 100644
--- a/lib/dns/dynamic_db.c
+++ b/lib/dns/dynamic_db.c
@@ -16,6 +16,8 @@
*/
+#include <config.h>
+
#include <isc/mem.h>
#include <isc/mutex.h>
#include <isc/once.h>
@@ -28,10 +30,7 @@
#include <dns/types.h>
-/* TODO: Adjust configure.ac accordingly. */
-#define HAVE_DLOPEN 1
-
-#if HAVE_DLOPEN
+#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
@@ -68,7 +67,7 @@ dyndb_initialize(void) {
}
-#if HAVE_DLOPEN
+#if HAVE_DLFCN_H
static isc_result_t
load_symbol(void *handle, const char *symbol_name, void **symbol)
{
@@ -148,7 +147,7 @@ unload_library(dyndb_implementation_t **imp)
*imp = NULL;
}
-#else /* HAVE_DLOPEN */
+#else /* HAVE_DLFCN_H */
static isc_result_t
load_library(isc_mem_t *mctx, const char *filename, dyndb_implementation_t **imp)
{
@@ -168,7 +167,7 @@ unload_library(dyndb_implementation_t **imp)
*imp = NULL;
}
-#endif /* HAVE_DLOPEN */
+#endif /* HAVE_DLFCN_H */
isc_result_t
dns_dynamic_db_load(const char *libname, const char *name, isc_mem_t *mctx,