diff options
Diffstat (limited to 'byterun/unix.c')
-rw-r--r-- | byterun/unix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/byterun/unix.c b/byterun/unix.c index 6fbf0922e..c0c345e26 100644 --- a/byterun/unix.c +++ b/byterun/unix.c @@ -176,6 +176,11 @@ void caml_dlclose(void * handle) void * caml_dlsym(void * handle, char * name) { +#if DL_NEEDS_UNDERSCORE + char _name[1000] = "_"; + strncat (_name, name, 998); + name = _name; +#endif return dlsym(handle, name); } |