From 91cc19721a9adafa8710b39ece79f2ffec664a4c Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Mon, 15 Dec 2008 19:18:22 +0100 Subject: Test for HAVE_DLFCN_H to make sure we have dlfcn.h --- lib/dns/dynamic_db.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'lib/dns/dynamic_db.c') 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 + #include #include #include @@ -28,10 +30,7 @@ #include -/* TODO: Adjust configure.ac accordingly. */ -#define HAVE_DLOPEN 1 - -#if HAVE_DLOPEN +#if HAVE_DLFCN_H #include #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, -- cgit