ports/www/tomcat-native/files/patch-src_ssl.c
Alex Dupre cd4ff24539 Use correct pthread function.
PR:		216419
Submitted by:	vvd@unislabs.com
2017-01-24 10:22:39 +00:00

11 lines
369 B
C

--- 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