aboutsummaryrefslogtreecommitdiff
path: root/librewolf/musl-pthread-name.patch
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2026-03-02 00:19:43 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2026-03-02 00:19:43 +0000
commitba183bce192264f4578989337ef61e756b7e130d (patch)
tree755618486e31be1f5822cde6149ad806768dc241 /librewolf/musl-pthread-name.patch
parentddeed1d8c208089ab95d7c971487650dc3b1ddff (diff)
downloadalicelinux-ba183bce192264f4578989337ef61e756b7e130d.tar.gz
alicelinux-ba183bce192264f4578989337ef61e756b7e130d.zip
Woodpecker CI 8ca72161f4af1c51192f5878cfc0e39a0ee84a03 [SKIP CI]
Diffstat (limited to 'librewolf/musl-pthread-name.patch')
-rw-r--r--librewolf/musl-pthread-name.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/librewolf/musl-pthread-name.patch b/librewolf/musl-pthread-name.patch
new file mode 100644
index 00000000..fe74bb1b
--- /dev/null
+++ b/librewolf/musl-pthread-name.patch
@@ -0,0 +1,29 @@
+From 70d47d18420fe9e3de8f896c08f97ef2596c9c84 Mon Sep 17 00:00:00 2001
+From: "Jory A. Pratt" <anarchy@gentoo.org>
+Date: Mon, 6 Apr 2020 20:10:03 +0200
+Subject: [PATCH 13/30] musl: Set pthread name for non glibc systems
+
+Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
+---
+ js/src/threading/posix/PosixThread.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/js/src/threading/posix/PosixThread.cpp b/js/src/threading/posix/PosixThread.cpp
+index 35532e375b..983da45326 100644
+--- a/js/src/threading/posix/PosixThread.cpp
++++ b/js/src/threading/posix/PosixThread.cpp
+@@ -115,8 +115,10 @@ void ThisThread::SetName(const char* name) {
+ rv = 0;
+ #elif defined(__NetBSD__)
+ rv = pthread_setname_np(pthread_self(), "%s", (void*)name);
+-#else
++#elif defined(__GLIBC__)
+ rv = pthread_setname_np(pthread_self(), name);
++#else
++ rv = 0;
+ #endif
+ MOZ_RELEASE_ASSERT(!rv);
+ }
+--
+2.34.1
+