8032456: vm/jni/Miscellaneous/misc001/misc00101m1/misc00101m1.html failing on OS X
authoralanb
Fri, 24 Jan 2014 11:50:33 +0000
changeset 22572 0680f54048ba
parent 22571 985dc9e27435
child 22573 8f0344f13b7f
8032456: vm/jni/Miscellaneous/misc001/misc00101m1/misc00101m1.html failing on OS X Reviewed-by: sla, chegar, psandoz
jdk/src/solaris/native/common/jni_util_md.c
--- a/jdk/src/solaris/native/common/jni_util_md.c	Thu Jan 23 14:06:58 2014 -0800
+++ b/jdk/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;
 }