summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-04-24 11:43:02 +0000
committerAndrew Tridgell <tridge@samba.org>2002-04-24 11:43:02 +0000
commit193225dd424c72209b54d867fac64b7415cff529 (patch)
tree9b355b4e98b6b7ae0e003704f622d5a60573e6d8 /source3/lib
parentee8dad7b3de45fe0525a2b3a0d734469cd508084 (diff)
downloadsamba-193225dd424c72209b54d867fac64b7415cff529.tar.gz
samba-193225dd424c72209b54d867fac64b7415cff529.tar.bz2
samba-193225dd424c72209b54d867fac64b7415cff529.zip
patch from Alexander Bokovoy needed for dlopen on bsd systems
(This used to be commit 38fd99e84176106ed700f637e9292d2a4c1385b4)
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 dfd206027e..9953df7058 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -1269,7 +1269,7 @@ int sys_pclose(int fd)
void *sys_dlopen(const char *name, int flags)
{
-#if defined(HAVE_LIBDL) || defined(HAVE_DLOPEN)
+#if defined(HAVE_DLOPEN)
return dlopen(name, flags);
#else
return NULL;
@@ -1278,7 +1278,7 @@ void *sys_dlopen(const char *name, int flags)
void *sys_dlsym(void *handle, char *symbol)
{
-#if defined(HAVE_LIBDL) || defined(HAVE_DLSYM)
+#if defined(HAVE_DLSYM)
return dlsym(handle, symbol);
#else
return NULL;
@@ -1287,7 +1287,7 @@ void *sys_dlsym(void *handle, char *symbol)
int sys_dlclose (void *handle)
{
-#if defined(HAVE_LIBDL) || defined(HAVE_DLCLOSE)
+#if defined(HAVE_DLCLOSE)
return dlclose(handle);
#else
return 0;
@@ -1296,7 +1296,7 @@ int sys_dlclose (void *handle)
const char *sys_dlerror(void)
{
-#if defined(HAVE_LIBDL) || defined(HAVE_DLERROR)
+#if defined(HAVE_DLERROR)
return dlerror();
#else
return NULL;