From ed5a1f70c6d155788b62e9e6e8c5d97a5ca0858d 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. --- source/lib/system.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/lib/system.c') 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 +} -- cgit