提交 f9d2cc56 编写于 作者: A alanb

8032456: vm/jni/Miscellaneous/misc001/misc00101m1/misc00101m1.html failing on OS X

Reviewed-by: sla, chegar, psandoz
上级 f379a4fa
......@@ -23,6 +23,8 @@
* questions.
*/
#include <string.h>
#include "jni.h"
#include "jni_util.h"
#include "dlfcn.h"
......@@ -40,7 +42,11 @@ void* getProcessHandle() {
if (procHandle != NULL) {
return procHandle;
}
#ifdef __APPLE__
procHandle = (void*)dlopen(NULL, RTLD_FIRST);
#else
procHandle = (void*)dlopen(NULL, RTLD_LAZY);
#endif
return procHandle;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册