summaryrefslogtreecommitdiffstats
path: root/byterun/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/unix.c')
-rw-r--r--byterun/unix.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/byterun/unix.c b/byterun/unix.c
index def4f152c..60e5f3634 100644
--- a/byterun/unix.c
+++ b/byterun/unix.c
@@ -285,10 +285,8 @@ char * caml_dlerror(void)
void * caml_dlopen(char * libname, int for_execution)
{
- return dlopen(libname,
- for_execution
- ? RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE
- : RTLD_LAZY);
+ return dlopen(libname, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE);
+ /* Could use RTLD_LAZY if for_execution == 0, but needs testing */
}
void caml_dlclose(void * handle)