ports/databases/mysql91-server/files/patch-include_my__thread__os__id.h
Jochen Neumeister 1fbff9cbe8 databases/mysql91-{server|client}: add new Ports
Welcome MySQL 9.1

What is new in MySQL9.1:
https://dev.mysql.com/doc/relnotes/mysql/9.1/en/news-9-1-0.html

MySQL8.4+ supports only 64-bit platforms!

Sponsored by:	Netzkommune GmbH
Special thanks to:	samm
2025-01-09 19:44:37 +01:00

15 lines
430 B
C

--- include/my_thread_os_id.h.orig 2024-04-10 06:26:28 UTC
+++ include/my_thread_os_id.h
@@ -85,8 +85,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;