summaryrefslogtreecommitdiffstats
path: root/byterun/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/unix.c')
-rw-r--r--byterun/unix.c4
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);