freebsd-ports/databases/mysqlwsrep57-server/files/patch-include_my__thread__os__id.h
Vasil Dimov f8b9a0372a databases/mysqlwsrep57-server: Upgrade from 5.7.25 to 5.7.26
PR:		239374
Submitted by:	Teemu Ollakka <teemu.ollakka@galeracluster.com>
2019-07-23 06:24:24 +00:00

15 lines
428 B
C

--- include/my_thread_os_id.h.orig 2019-07-17 18:38:36 UTC
+++ include/my_thread_os_id.h
@@ -81,8 +81,12 @@ static inline my_thread_os_id_t my_thread_os_id()
return pthread_getthreadid_np();
#else
#ifdef HAVE_INTEGER_PTHREAD_SELF
+# ifdef __DragonFly__
+ return syscall(SYS_lwp_gettid);
+# else
/* Unknown platform, fallback. */
return pthread_self();
+# endif
#else
/* Feature not available. */
return 0;