1.1 --- a/src/cpu/sparc/vm/jni_sparc.h Thu Jan 27 16:11:27 2011 -0800 1.2 +++ b/src/cpu/sparc/vm/jni_sparc.h Tue Feb 01 11:23:19 2011 -0500 1.3 @@ -23,8 +23,13 @@ 1.4 * questions. 1.5 */ 1.6 1.7 -#define JNIEXPORT 1.8 -#define JNIIMPORT 1.9 +#if defined(__GNUC__) && (__GNUC__ >= 4) 1.10 + #define JNIEXPORT __attribute__((visibility("default"))) 1.11 + #define JNIIMPORT __attribute__((visibility("default"))) 1.12 +#else 1.13 + #define JNIEXPORT 1.14 + #define JNIIMPORT 1.15 +#endif 1.16 #define JNICALL 1.17 1.18 typedef int jint;