From 51a70a07bc0c9fdef11a17cd954612b667c4bfb2 Mon Sep 17 00:00:00 2001 From: Jacques Garrigue Date: Sun, 9 Sep 2001 08:35:55 +0000 Subject: 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 --- byterun/unix.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'byterun/unix.c') 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); -- cgit v1.2.3-70-g09d2