aboutsummaryrefslogtreecommitdiffstats
path: root/main/pcsc-lite/musl-stacksize.patch
blob: e38c25ac1c3a4f1834c2870ac41abb17d0b6a1be (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, 0x400000);
+   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)