--- old/src/java.base/unix/native/include/jni_md.h 2017-10-26 15:30:59.909237753 -0400 +++ new/src/java.base/unix/native/include/jni_md.h 2017-10-26 15:30:59.455234450 -0400 @@ -30,8 +30,13 @@ #define __has_attribute(x) 0 #endif #if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility) - #define JNIEXPORT __attribute__((visibility("default"))) - #define JNIIMPORT __attribute__((visibility("default"))) + #ifdef ARM + #define JNIEXPORT __attribute__((externally_visible,visibility("default"))) + #define JNIIMPORT __attribute__((externally_visible,visibility("default"))) + #else + #define JNIEXPORT __attribute__((visibility("default"))) + #define JNIIMPORT __attribute__((visibility("default"))) + #endif #else #define JNIEXPORT #define JNIIMPORT @@ -40,7 +45,7 @@ #define JNICALL typedef int jint; -#ifdef _LP64 /* 64-bit Solaris */ +#ifdef _LP64 typedef long jlong; #else typedef long long jlong;