pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
openal-soft: Adjust usage of pthread_setname_np(3) for NetBSD.
Module Name: pkgsrc-wip
Committed By: Mateusz Poszwa <old4%o2.pl@localhost>
Pushed By: f8l
Date: Tue Dec 29 23:57:25 2015 +0100
Changeset: 1ee5a3578787324587b6e555c5327fc7049c13a7
Modified Files:
openal-soft/distinfo
Added Files:
openal-soft/patches/patch-common_threads.c
Log Message:
openal-soft: Adjust usage of pthread_setname_np(3) for NetBSD.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1ee5a3578787324587b6e555c5327fc7049c13a7
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
openal-soft/distinfo | 1 +
openal-soft/patches/patch-common_threads.c | 17 +++++++++++++++++
2 files changed, 18 insertions(+)
diffs:
diff --git a/openal-soft/distinfo b/openal-soft/distinfo
index 073ae6a..ae7a87a 100644
--- a/openal-soft/distinfo
+++ b/openal-soft/distinfo
@@ -4,3 +4,4 @@ SHA1 (openal-soft-1.17.1.tar.bz2) = 92b8dbba07674e11538934fc7a89dcd64ecafd40
RMD160 (openal-soft-1.17.1.tar.bz2) = d8292b39bf88f0f6f2d3200e034fa368589ca84c
SHA512 (openal-soft-1.17.1.tar.bz2) = f0b14e9fdcc22bb18d9c3278392fd94959cd3d85d83ad0472dcac24122fe1f8c818ef8c47197424f6d9789524d0aff64965ce502965f5d6541a772fc8dc3286d
Size (openal-soft-1.17.1.tar.bz2) = 485178 bytes
+SHA1 (patch-common_threads.c) = aca201b6649e1b5b083aeb90c6fcde71e66c66cd
diff --git a/openal-soft/patches/patch-common_threads.c b/openal-soft/patches/patch-common_threads.c
new file mode 100644
index 0000000..b2228a6
--- /dev/null
+++ b/openal-soft/patches/patch-common_threads.c
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Adjust usage of pthread_setname_np(3).
+
+--- common/threads.c.orig 2015-12-10 12:45:30.000000000 +0000
++++ common/threads.c
+@@ -497,7 +497,9 @@ extern inline void alcall_once(alonce_fl
+ void althrd_setname(althrd_t thr, const char *name)
+ {
+ #if defined(HAVE_PTHREAD_SETNAME_NP)
+-#if defined(__GNUC__)
++#if defined(__NetBSD__)
++ pthread_setname_np(thr, "%s", name);
++#elif defined(__GNUC__)
+ pthread_setname_np(thr, name);
+ #elif defined(__APPLE__)
+ if(althrd_equal(thr, althrd_current())
Home |
Main Index |
Thread Index |
Old Index