summaryrefslogtreecommitdiffstats
path: root/main/pcsc-lite/musl-stacksize.patch
blob: 2d9a07596d5c3e83008cc7e44a811b912acee190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -urw src/pcsc-lite-1.8.11/src/utils.c src.cur/src/utils.c
--- src/pcsc-lite-1.8.11/src/utils.c	2014-02-14 16:15:44.000000000 +0000
+++ src.cur/src/utils.c	2014-08-05 23:46:09.240000000 +0000
@@ -161,6 +161,13 @@
 	if (ret)
 		return ret;
 
+   ret = pthread_attr_setstacksize(&attr, 0x40000);
+   if (ret)
+   {
+           (void)pthread_attr_destroy(&attr);
+           return ret;
+   }
+
 	ret = pthread_attr_setdetachstate(&attr,
 		attributes & THREAD_ATTR_DETACHED ? PTHREAD_CREATE_DETACHED : PTHREAD_CREATE_JOINABLE);
 	if (ret)