summaryrefslogtreecommitdiff
path: root/source3/lib/system.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-07-06 18:45:59 +0000
committerJeremy Allison <jra@samba.org>2001-07-06 18:45:59 +0000
commit9df203f876c617f67304fe436a339289dbbaf814 (patch)
tree9c357d5484bb8cf368c4eac880161174c83be73d /source3/lib/system.c
parentdf68e652d6411f11d9cb00aefb15c8a62ef1f149 (diff)
downloadsamba-9df203f876c617f67304fe436a339289dbbaf814.tar.gz
samba-9df203f876c617f67304fe436a339289dbbaf814.tar.bz2
samba-9df203f876c617f67304fe436a339289dbbaf814.zip
Wrapped dlerror() in the same way as the other dlxxx() calls.
Jeremy. (This used to be commit ed5a1f70c6d155788b62e9e6e8c5d97a5ca0858d)
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r--source3/lib/system.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 0799a855e8..185c1daa82 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -977,3 +977,12 @@ int sys_dlclose (void *handle)
return 0;
#endif
}
+
+const char *sys_dlerror(void)
+{
+#ifdef HAVE_LIBDL
+ return dlerror();
+#else
+ return NULL;
+#endif
+}