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, 2 insertions, 2 deletions
diff --git a/byterun/unix.c b/byterun/unix.c
index 7343a0957..127d1bad3 100644
--- a/byterun/unix.c
+++ b/byterun/unix.c
@@ -343,12 +343,12 @@ void * caml_dlsym(void * handle, char * name)
void * caml_globalsym(char * name)
{
- return caml_dlsym(dlopen(NULL,RTLD_GLOBAL), name);
+ return caml_dlsym(RTLD_DEFAULT, name);
}
char * caml_dlerror(void)
{
- return dlerror();
+ return (char*) dlerror();
}
#endif