pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/mysql57-client Add thread ID support on NetB...
details: https://anonhg.NetBSD.org/pkgsrc/rev/46d4a4fc2d8c
branches: trunk
changeset: 353076:46d4a4fc2d8c
user: fhajny <fhajny%pkgsrc.org@localhost>
date: Tue Sep 27 09:01:59 2016 +0000
description:
Add thread ID support on NetBSD. Fixes build.
diffstat:
databases/mysql57-client/distinfo | 3 +-
databases/mysql57-client/patches/patch-include_my__thread__os__id.h | 35 ++++++++++
2 files changed, 37 insertions(+), 1 deletions(-)
diffs (56 lines):
diff -r 9f225bf4caa7 -r 46d4a4fc2d8c databases/mysql57-client/distinfo
--- a/databases/mysql57-client/distinfo Tue Sep 27 02:37:32 2016 +0000
+++ b/databases/mysql57-client/distinfo Tue Sep 27 09:01:59 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2016/09/16 06:49:11 adam Exp $
+$NetBSD: distinfo,v 1.2 2016/09/27 09:01:59 fhajny Exp $
SHA1 (mysql-5.7.15.tar.gz) = ea4f79fea576f373560ec88b42121b4522be3d58
RMD160 (mysql-5.7.15.tar.gz) = 02a01866339764018ae40f0109dbf1e2fafb8ab3
@@ -16,6 +16,7 @@
SHA1 (patch-include_my__compare.h) = f45bac4b488332a668b0005751856279b67401f5
SHA1 (patch-include_my__global.h) = 3870266cb1dd2cd0d58417dfe21bab19b62100e2
SHA1 (patch-include_my__thread.h) = 0f095acf94f8d130516dc4d858de1c64dd2bc127
+SHA1 (patch-include_my__thread__os__id.h) = a51861b791086a0eeb9cb4d64892c5033da8c8eb
SHA1 (patch-libmysql_CMakeLists.txt) = 0105627fb9a5be56eaf21cda927589e0ffd99758
SHA1 (patch-mysql-test_CMakeLists.txt) = 4ba56ce255f5f89d9aece93181e54ddb572f301b
SHA1 (patch-mysys__ssl_CMakeLists.txt) = 7ec44642cd13c5477175a94a007354c583ca9c3c
diff -r 9f225bf4caa7 -r 46d4a4fc2d8c databases/mysql57-client/patches/patch-include_my__thread__os__id.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/mysql57-client/patches/patch-include_my__thread__os__id.h Tue Sep 27 09:01:59 2016 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-include_my__thread__os__id.h,v 1.1 2016/09/27 09:01:59 fhajny Exp $
+
+Add support for NetBSD.
+
+--- include/my_thread_os_id.h.orig 2016-08-25 11:52:06.000000000 +0000
++++ include/my_thread_os_id.h
+@@ -30,6 +30,10 @@
+ #include <pthread.h> /* pthread_self */
+ #endif
+
++#ifdef __NetBSD__
++#include <lwp.h>
++#endif
++
+ #ifdef HAVE_PTHREAD_GETTHREADID_NP
+ #include <pthread_np.h> /* pthread_getthreadid_np() */
+ #endif /* HAVE_PTHREAD_GETTHREADID_NP */
+@@ -74,6 +78,9 @@ static inline my_thread_os_id_t my_threa
+ /* FreeBSD 10.2 */
+ return pthread_getthreadid_np();
+ #else
++#ifdef __NetBSD__
++ return (int)_lwp_self();
++#else
+ #ifdef HAVE_INTEGER_PTHREAD_SELF
+ /* Unknown platform, fallback. */
+ return pthread_self();
+@@ -81,6 +88,7 @@ static inline my_thread_os_id_t my_threa
+ /* Feature not available. */
+ return 0;
+ #endif /* HAVE_INTEGER_PTHREAD_SELF */
++#endif /* __NetBSD__ */
+ #endif /* HAVE_PTHREAD_GETTHREADID_NP */
+ #endif /* _WIN32 */
+ #endif /* HAVE_SYS_GETTID */
Home |
Main Index |
Thread Index |
Old Index