Mercurial > hg > openjdk > jdk8 > jdk
changeset 9084:b56ff7d30a72
8032456: vm/jni/Miscellaneous/misc001/misc00101m1/misc00101m1.html failing on OS X
Reviewed-by: sla, chegar, psandoz
author | alanb |
---|---|
date | Fri, 24 Jan 2014 11:50:33 +0000 |
parents | 4d891c8db5c1 |
children | 56d05f260123 |
files | src/solaris/native/common/jni_util_md.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/solaris/native/common/jni_util_md.c Tue Jan 21 12:08:02 2014 +0800 +++ b/src/solaris/native/common/jni_util_md.c Fri Jan 24 11:50:33 2014 +0000 @@ -23,6 +23,8 @@ * questions. */ +#include <string.h> + #include "jni.h" #include "jni_util.h" #include "dlfcn.h" @@ -40,7 +42,11 @@ if (procHandle != NULL) { return procHandle; } +#ifdef __APPLE__ + procHandle = (void*)dlopen(NULL, RTLD_FIRST); +#else procHandle = (void*)dlopen(NULL, RTLD_LAZY); +#endif return procHandle; }