pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/MesaLib MesaLib: Fix build with illumos.
details: https://anonhg.NetBSD.org/pkgsrc/rev/06351a82555d
branches: trunk
changeset: 416706:06351a82555d
user: nia <nia%pkgsrc.org@localhost>
date: Tue Oct 29 09:21:54 2019 +0000
description:
MesaLib: Fix build with illumos.
Oracle Solaris has pthread_setname_np. illumos does not.
diffstat:
graphics/MesaLib/distinfo | 4 ++--
graphics/MesaLib/patches/patch-src_util_u__thread.h | 15 +++++++++++++--
2 files changed, 15 insertions(+), 4 deletions(-)
diffs (43 lines):
diff -r 310ba86a067f -r 06351a82555d graphics/MesaLib/distinfo
--- a/graphics/MesaLib/distinfo Tue Oct 29 09:20:24 2019 +0000
+++ b/graphics/MesaLib/distinfo Tue Oct 29 09:21:54 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.137 2019/10/28 13:20:33 nia Exp $
+$NetBSD: distinfo,v 1.138 2019/10/29 09:21:54 nia Exp $
SHA1 (mesa-19.2.2.tar.xz) = 6ddc41e71d894dd406a3ca482f1cfda44566a5f8
RMD160 (mesa-19.2.2.tar.xz) = 10a5761ecb3f9dc1157ad2516abb48cc91e9d4e1
@@ -41,4 +41,4 @@
SHA1 (patch-src_util_strndup.h) = 73f49694ca48ad6b9a9d8346c5b84fddec2463bd
SHA1 (patch-src_util_u__atomic.h) = 31d4514538ef5ee53012695eb5c66134aaec981e
SHA1 (patch-src_util_u__queue.c) = ed1ea3f6fc37e9a64894a3e865c48691b6e01b2c
-SHA1 (patch-src_util_u__thread.h) = a49a0839881c30aeede118d096250820d10d8317
+SHA1 (patch-src_util_u__thread.h) = 60c14883925ac60e26efbeee5bef257d081bcc51
diff -r 310ba86a067f -r 06351a82555d graphics/MesaLib/patches/patch-src_util_u__thread.h
--- a/graphics/MesaLib/patches/patch-src_util_u__thread.h Tue Oct 29 09:20:24 2019 +0000
+++ b/graphics/MesaLib/patches/patch-src_util_u__thread.h Tue Oct 29 09:21:54 2019 +0000
@@ -1,11 +1,22 @@
-$NetBSD: patch-src_util_u__thread.h,v 1.2 2019/10/19 10:29:58 nia Exp $
+$NetBSD: patch-src_util_u__thread.h,v 1.3 2019/10/29 09:21:54 nia Exp $
+
+Oracle Solaris has pthread_setname_np. illumos does not.
Don't hard error when there's no pthread_setname_np.
handle NetBSD-style pthread_setaffinity_np(3)
---- src/util/u_thread.h.orig 2019-10-09 16:52:00.000000000 +0000
+--- src/util/u_thread.h.orig 2019-10-24 16:13:04.000000000 +0000
+++ src/util/u_thread.h
+@@ -69,7 +69,7 @@ static inline thrd_t u_thread_create(int
+ static inline void u_thread_setname( const char *name )
+ {
+ #if defined(HAVE_PTHREAD)
+-#if DETECT_OS_LINUX || DETECT_OS_CYGWIN || DETECT_OS_SOLARIS
++#if DETECT_OS_LINUX || DETECT_OS_CYGWIN
+ pthread_setname_np(pthread_self(), name);
+ #elif DETECT_OS_FREEBSD || DETECT_OS_OPENBSD
+ pthread_set_name_np(pthread_self(), name);
@@ -78,7 +78,6 @@ static inline void u_thread_setname( con
#elif DETECT_OS_APPLE
pthread_setname_np(name);
Home |
Main Index |
Thread Index |
Old Index