aboutsummaryrefslogtreecommitdiffstats
path: root/main/pcsc-lite/musl-stacksize.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/pcsc-lite/musl-stacksize.patch')
-rw-r--r--main/pcsc-lite/musl-stacksize.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/pcsc-lite/musl-stacksize.patch b/main/pcsc-lite/musl-stacksize.patch
new file mode 100644
index 0000000000..e38c25ac1c
--- /dev/null
+++ b/main/pcsc-lite/musl-stacksize.patch
@@ -0,0 +1,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)