summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-27 03:00:39 +0000
committerJeremy Allison <jra@samba.org>2002-03-27 03:00:39 +0000
commit7d7c594644d9b374e522f208b1f0bd5ab8abb9ab (patch)
treec197c1ed507014055f027cf0ace873e11ac3caca /source3/lib
parent1a06eeb6dae9b148a6e70470660e51a42def2399 (diff)
downloadsamba-7d7c594644d9b374e522f208b1f0bd5ab8abb9ab.tar.gz
samba-7d7c594644d9b374e522f208b1f0bd5ab8abb9ab.tar.bz2
samba-7d7c594644d9b374e522f208b1f0bd5ab8abb9ab.zip
Removed HAVE_LIBDL from most places (except system.c). Added checks for
dlopen & friends into configure.in. This should help building on *BSD where dl*** calls are in libc. Jeremy (This used to be commit ac1baba35d7a399bf800ced49a4384e39955e3eb)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/system.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index b911c29d93..2a0889b356 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -1171,7 +1171,7 @@ int sys_pclose(int fd)
void *sys_dlopen(const char *name, int flags)
{
-#ifdef HAVE_LIBDL
+#if defined(HAVE_LIBDL) || defined(HAVE_DLOPEN)
return dlopen(name, flags);
#else
return NULL;
@@ -1180,7 +1180,7 @@ void *sys_dlopen(const char *name, int flags)
void *sys_dlsym(void *handle, char *symbol)
{
-#ifdef HAVE_LIBDL
+#if defined(HAVE_LIBDL) || defined(HAVE_DLSYM)
return dlsym(handle, symbol);
#else
return NULL;
@@ -1189,7 +1189,7 @@ void *sys_dlsym(void *handle, char *symbol)
int sys_dlclose (void *handle)
{
-#ifdef HAVE_LIBDL
+#if defined(HAVE_LIBDL) || defined(HAVE_DLCLOSE)
return dlclose(handle);
#else
return 0;
@@ -1198,7 +1198,7 @@ int sys_dlclose (void *handle)
const char *sys_dlerror(void)
{
-#ifdef HAVE_LIBDL
+#if defined(HAVE_LIBDL) || defined(HAVE_DLERROR)
return dlerror();
#else
return NULL;