summaryrefslogtreecommitdiff
path: root/databases/mysql57-server/files/patch-include_my__thread__os__id.h
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mysql57-server/files/patch-include_my__thread__os__id.h')
-rw-r--r--databases/mysql57-server/files/patch-include_my__thread__os__id.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/databases/mysql57-server/files/patch-include_my__thread__os__id.h b/databases/mysql57-server/files/patch-include_my__thread__os__id.h
new file mode 100644
index 000000000000..382c3ee920f5
--- /dev/null
+++ b/databases/mysql57-server/files/patch-include_my__thread__os__id.h
@@ -0,0 +1,15 @@
+--- include/my_thread_os_id.h.orig 2015-11-29 19:16:24 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;