From 0a8236066f945c6026337dd4ea9342a9034f7987 Mon Sep 17 00:00:00 2001 From: Jacques Garrigue Date: Thu, 18 Apr 2002 07:27:47 +0000 Subject: vive les methodes polymorphes! git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4694 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- byterun/unix.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'byterun/unix.c') diff --git a/byterun/unix.c b/byterun/unix.c index 38b9b4aad..62961c40e 100644 --- a/byterun/unix.c +++ b/byterun/unix.c @@ -157,10 +157,13 @@ char * search_dll_in_path(struct ext_table * path, char * name) #ifndef RTLD_GLOBAL #define RTLD_GLOBAL 0 #endif +#ifndef RTLD_NODELETE +#define RTLD_NODELETE 0 +#endif void * caml_dlopen(char * libname) { - return dlopen(libname, RTLD_NOW|RTLD_GLOBAL); + return dlopen(libname, RTLD_NOW|RTLD_GLOBAL|RTLD_NODELETE); } void caml_dlclose(void * handle) -- cgit v1.2.3-70-g09d2