commit | b39ef128c8f848a0b76025f07569450c764eb9eb | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Jun 22 16:19:31 2006 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Jun 22 16:19:31 2006 +0000 |
tree | 0c9c62c8fcffd8432d46c961def5674ebc32f434 | |
parent | 9dfb0f808f85b102ac1082c9f6ae7b695e7b15cd [diff] [blame] |
updated for version 7.0-026
diff --git a/src/os_unix.c b/src/os_unix.c index 0059d30..b375468 100644 --- a/src/os_unix.c +++ b/src/os_unix.c
@@ -5757,8 +5757,13 @@ int retval_int = 0; int success = FALSE; - /* Get a handle to the DLL module. */ + /* + * Get a handle to the DLL module. + */ # if defined(USE_DLOPEN) + /* First clear any error, it's not cleared by the dlopen() call. */ + (void)dlerror(); + hinstLib = dlopen((char *)libname, RTLD_LAZY # ifdef RTLD_LOCAL | RTLD_LOCAL