summaryrefslogtreecommitdiff
path: root/js/src/threading/posix/Thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/threading/posix/Thread.cpp')
-rw-r--r--js/src/threading/posix/Thread.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/src/threading/posix/Thread.cpp b/js/src/threading/posix/Thread.cpp
index faca05c24d..a5c2d2eacb 100644
--- a/js/src/threading/posix/Thread.cpp
+++ b/js/src/threading/posix/Thread.cpp
@@ -151,9 +151,7 @@ js::ThisThread::SetName(const char* name)
#endif
int rv;
-#ifdef XP_DARWIN
- rv = pthread_setname_np(name);
-#elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__OpenBSD__)
+#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__OpenBSD__)
pthread_set_name_np(pthread_self(), name);
rv = 0;
#elif defined(__NetBSD__)