--- a/src/java.base/unix/native/include/jni_md.h Tue Feb 13 14:54:44 2018 +0100
+++ b/src/java.base/unix/native/include/jni_md.h Tue Feb 13 15:14:11 2018 +0100
@@ -38,8 +38,13 @@
#define JNIIMPORT __attribute__((visibility("default")))
#endif
#else
- #define JNIEXPORT
- #define JNIIMPORT
+ #if (defined(__SUNPRO_C) || defined(__SUNPRO_CC))
+ #define JNIEXPORT __attribute__((visibility("default")))
+ #define JNIIMPORT __attribute__((visibility("default")))
+ #else
+ #define JNIEXPORT
+ #define JNIIMPORT
+ #endif
#endif
#define JNICALL