From 9df203f876c617f67304fe436a339289dbbaf814 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 6 Jul 2001 18:45:59 +0000 Subject: Wrapped dlerror() in the same way as the other dlxxx() calls. Jeremy. (This used to be commit ed5a1f70c6d155788b62e9e6e8c5d97a5ca0858d) --- source3/lib/system.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3/lib/system.c') 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 +} -- cgit