summaryrefslogtreecommitdiff
blob: 5b0f4a397cda882fcb6b1764f27fc05d03f7da71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 099f2448dd4294abb91bae2135bac103a819ff8f Mon Sep 17 00:00:00 2001
From: Jory Pratt <anarchy@gentoo.org>
Date: Wed, 24 Apr 2019 10:15:33 -0500
Subject: [PATCH 6/7] set default stacksize for musl

---
 xbmc/threads/platform/pthreads/ThreadImpl.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xbmc/threads/platform/pthreads/ThreadImpl.cpp b/xbmc/threads/platform/pthreads/ThreadImpl.cpp
index 4ad675e..46efbc2 100644
--- a/xbmc/threads/platform/pthreads/ThreadImpl.cpp
+++ b/xbmc/threads/platform/pthreads/ThreadImpl.cpp
@@ -56,6 +56,7 @@ void CThread::SpawnThread(unsigned stacksize)
 {
   pthread_attr_t attr;
   pthread_attr_init(&attr);
+  if (!stacksize) stacksize = 1024*1024;
 #if !defined(TARGET_ANDROID) // http://code.google.com/p/android/issues/detail?id=7808
   if (stacksize > PTHREAD_STACK_MIN)
     pthread_attr_setstacksize(&attr, stacksize);
-- 
2.21.0