src/jdk.hotspot.agent/solaris/native/libsaproc/saproc.cpp
changeset 49440 396ea30afbd5
parent 47216 71c04702a3d5
child 49896 ec2dd30adbc1
--- a/src/jdk.hotspot.agent/solaris/native/libsaproc/saproc.cpp	Wed Mar 28 21:00:09 2018 +0200
+++ b/src/jdk.hotspot.agent/solaris/native/libsaproc/saproc.cpp	Wed Mar 28 23:56:08 2018 +0200
@@ -221,7 +221,8 @@
 // implement as a pathmap style facility for the SA.  If libproc
 // starts using other interfaces then this might have to extended to
 // cover other calls.
-extern "C" int libsaproc_open(const char * name, int oflag, ...) {
+extern "C" JNIEXPORT int JNICALL
+libsaproc_open(const char * name, int oflag, ...) {
   if (oflag == O_RDONLY) {
     init_alt_root();