diff options
author | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2001-09-09 08:35:55 +0000 |
---|---|---|
committer | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2001-09-09 08:35:55 +0000 |
commit | 51a70a07bc0c9fdef11a17cd954612b667c4bfb2 (patch) | |
tree | 3c7f7b165fc9d87f4c67aa636cc6117c18f0e686 /byterun/unix.c | |
parent | a84edb19d3ab8a8e15305a2d1c952a234fa21fba (diff) |
support dlopen without RTLD_GLOBAL (PR#517)
(but linking may not work on some libraries...)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3740 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/unix.c')
-rw-r--r-- | byterun/unix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/byterun/unix.c b/byterun/unix.c index 4f666b80b..4fc70b003 100644 --- a/byterun/unix.c +++ b/byterun/unix.c @@ -153,6 +153,10 @@ char * search_dll_in_path(struct ext_table * path, char * name) #ifdef SUPPORT_DYNAMIC_LINKING +#ifndef RTLD_GLOBAL +#define RTLD_GLOBAL 0 +#endif + void * caml_dlopen(char * libname) { return dlopen(libname, RTLD_NOW|RTLD_GLOBAL); |