summaryrefslogtreecommitdiffstats
path: root/byterun/unix.c
diff options
context:
space:
mode:
authorJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2002-04-18 07:27:47 +0000
committerJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2002-04-18 07:27:47 +0000
commit0a8236066f945c6026337dd4ea9342a9034f7987 (patch)
treefb63dbda5f249cabf8dea58695131d2e1bf31807 /byterun/unix.c
parent4b70ed64c47bb1a179f0cd58a5d78d1733c5dd54 (diff)
vive les methodes polymorphes!
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4694 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/unix.c')
-rw-r--r--byterun/unix.c5
1 files changed, 4 insertions, 1 deletions
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)