summaryrefslogtreecommitdiff
path: root/www/tomcat-native/files/patch-src_ssl.c
blob: 85b49b4d9da60949cbb058300db9ea289c880f04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/ssl.c.orig	2017-01-23 08:26:47 UTC
+++ src/ssl.c
@@ -428,6 +428,8 @@ static unsigned long ssl_thread_id(void)
     uint64_t tid;
     pthread_threadid_np(NULL, &tid);
     return (unsigned long)tid;
+#elif defined(__FreeBSD__)
+    return (unsigned long)pthread_getthreadid_np();
 #elif defined(__linux__)
     return (unsigned long)syscall(SYS_gettid);
 #else