src/jdk.hotspot.agent/linux/native/libsaproc/proc_service.h
changeset 58913 e2dfab7beccb
parent 53379 e47074d2d8cc
--- a/src/jdk.hotspot.agent/linux/native/libsaproc/proc_service.h	Mon Nov 04 13:58:33 2019 +0100
+++ b/src/jdk.hotspot.agent/linux/native/libsaproc/proc_service.h	Mon Nov 04 22:31:59 2019 +0900
@@ -42,6 +42,10 @@
         PS_NOFREGS      /* FPU register set not available for given lwp */
 } ps_err_e;
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 // ps_getpid() is only defined on Linux to return a thread's process ID
 JNIEXPORT pid_t JNICALL
 ps_getpid(struct ps_prochandle *ph);
@@ -77,4 +81,8 @@
 JNIEXPORT ps_err_e JNICALL
 ps_lgetregs(struct ps_prochandle *ph, lwpid_t lid, prgregset_t gregset);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _PROC_SERVICE_H_ */