--- a/hotspot/src/cpu/x86/vm/jni_x86.h Thu Jan 27 16:11:27 2011 -0800
+++ b/hotspot/src/cpu/x86/vm/jni_x86.h Tue Feb 01 11:23:19 2011 -0500
@@ -27,10 +27,16 @@
#define _JAVASOFT_JNI_MD_H_
#if defined(SOLARIS) || defined(LINUX)
+
+#if defined(__GNUC__) && (__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2)
+ #define JNIEXPORT __attribute__((visibility("default")))
+ #define JNIIMPORT __attribute__((visibility("default")))
+#else
#define JNIEXPORT
#define JNIIMPORT
+#endif
+
#define JNICALL
-
typedef int jint;
#ifdef _LP64