This is an automated email from the ASF dual-hosted git repository. michaelo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
The following commit(s) were added to refs/heads/master by this push: new 41a4da6 Add support for HP-UX's _lwp_self() in our ssl_thread_id(void) 41a4da6 is described below commit 41a4da68ce0e26d7f57ebeef9d7dbadb029a18ee Author: Michael Osipov <micha...@apache.org> AuthorDate: Mon May 18 15:53:39 2020 +0200 Add support for HP-UX's _lwp_self() in our ssl_thread_id(void) --- native/src/jnilib.c | 4 ++++ xdocs/miscellaneous/changelog.xml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/native/src/jnilib.c b/native/src/jnilib.c index 5004966..670a311 100644 --- a/native/src/jnilib.c +++ b/native/src/jnilib.c @@ -32,6 +32,8 @@ #include <pthread_np.h> #elif defined(__linux__) #include <sys/syscall.h> +#elif defined(__hpux) +#include <sys/lwp_id.h> #else #include <pthread.h> #endif @@ -518,6 +520,8 @@ unsigned long tcn_get_thread_id(void) return (unsigned long)pthread_getthreadid_np(); #elif defined(__linux__) return (unsigned long)syscall(SYS_gettid); +#elif defined(__hpux) + return (unsigned long)_lwp_self(); #else return (unsigned long)pthread_self(); #endif diff --git a/xdocs/miscellaneous/changelog.xml b/xdocs/miscellaneous/changelog.xml index 68ce2f4..1caa86a 100644 --- a/xdocs/miscellaneous/changelog.xml +++ b/xdocs/miscellaneous/changelog.xml @@ -49,6 +49,10 @@ Add support for <code>SSLContext.addChainCertificateRaw()</code> with LibreSSL 2.9.1 and up. (michaelo) </add> + <add> + Add support for HP-UX's _lwp_self() in our + ssl_thread_id(void). (michaelo) + </add> </changelog> </section> <section name="Changes in 1.2.24"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org