void-packages/srcpkgs/obs/patches/0001-musl.patch
2015-06-26 22:27:16 +02:00

30 lines
874 B
Diff

From d0c8195c1a863e35f23a4c3f5d130078a22bd651 Mon Sep 17 00:00:00 2001
From: lemmi <lemmi@nerd2nerd.org>
Date: Fri, 26 Jun 2015 22:13:26 +0200
Subject: [PATCH] musl
---
libobs/util/threading-posix.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git libobs/util/threading-posix.c libobs/util/threading-posix.c
index dcf6d28..72df7dc 100644
--- libobs/util/threading-posix.c
+++ libobs/util/threading-posix.c
@@ -263,11 +263,7 @@ bool os_atomic_compare_swap_long(volatile long *val, long old_val, long new_val)
void os_set_thread_name(const char *name)
{
-#if defined(__APPLE__)
- pthread_setname_np(name);
-#elif defined(__FreeBSD__)
- pthread_set_name_np(pthread_self(), name);
-#elif !defined(__MINGW32__)
- pthread_setname_np(pthread_self(), name);
+#if defined(__GLIBC__)
+ pthread_setname_np(pthread_self(), name);
#endif
}
--
2.4.4