diff options
author | Jeremy Allison <jra@samba.org> | 2002-03-27 03:00:39 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-03-27 03:00:39 +0000 |
commit | ac1baba35d7a399bf800ced49a4384e39955e3eb (patch) | |
tree | ada8f97c6442021a37305b640b9df1ebb621929a /source/lib/system.c | |
parent | 2bebc8a391bd80bd0e5adbedb3757fb4279ec414 (diff) | |
download | samba-ac1baba35d7a399bf800ced49a4384e39955e3eb.tar.gz samba-ac1baba35d7a399bf800ced49a4384e39955e3eb.tar.xz samba-ac1baba35d7a399bf800ced49a4384e39955e3eb.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
Diffstat (limited to 'source/lib/system.c')
-rw-r--r-- | source/lib/system.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/lib/system.c b/source/lib/system.c index b911c29d93a..2a0889b3569 100644 --- a/source/lib/system.c +++ b/source/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; |