ports/databases/mysql80-server/files/patch-include_my__thread__os__id.h
Nikolai Lifanov c93ab7fefa add databases/mysql80-server and databases/mysql80-client
This is a development snapshot of upcoming MySQL 8.0.

PR:		215738
Submitted by:	Mahdi Mokhtari <mokhi64@gmail.com>
Reviewed by:	matthew, feld
Approved by:	matthew (mentor), feld
Differential Revision:	https://reviews.freebsd.org/D9031
2017-01-07 20:34:46 +00:00

15 lines
419 B
C

--- include/my_thread_os_id.h.orig 2016-03-28 18:06:12 UTC
+++ include/my_thread_os_id.h
@@ -75,8 +75,12 @@ static inline my_thread_os_id_t my_threa
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;