summaryrefslogtreecommitdiffstats
path: root/byterun/unix.c
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2002-11-12 17:52:57 +0000
committerDamien Doligez <damien.doligez-inria.fr>2002-11-12 17:52:57 +0000
commit76dfd059b8b03d2b6c6c11ad95d92a7da0968ba7 (patch)
treea29666ea2efae0ede1298d2cfdedb43848613d15 /byterun/unix.c
parent51233b6e8323e7a8dcc1b82b140490466465b6a3 (diff)
ajout DLL pour MacOS X
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5259 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/unix.c')
-rw-r--r--byterun/unix.c5
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);
}