summaryrefslogtreecommitdiffstats
path: root/source/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
commited5a1f70c6d155788b62e9e6e8c5d97a5ca0858d (patch)
treed95e3cad75c2ea13356473618481f312156a206e /source/lib/system.c
parent5059fbbb76ffa24658a878080a36e355df4894f5 (diff)
downloadsamba-ed5a1f70c6d155788b62e9e6e8c5d97a5ca0858d.tar.gz
samba-ed5a1f70c6d155788b62e9e6e8c5d97a5ca0858d.tar.xz
samba-ed5a1f70c6d155788b62e9e6e8c5d97a5ca0858d.zip
Wrapped dlerror() in the same way as the other dlxxx() calls.
Jeremy.
Diffstat (limited to 'source/lib/system.c')
-rw-r--r--source/lib/system.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/lib/system.c b/source/lib/system.c
index 0799a855e81..185c1daa82d 100644
--- a/source/lib/system.c
+++ b/source/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
+}