summaryrefslogtreecommitdiff
path: root/lang/python21/files
diff options
context:
space:
mode:
authorAlan Eldridge <alane@FreeBSD.org>2003-04-13 19:20:43 +0000
committerAlan Eldridge <alane@FreeBSD.org>2003-04-13 19:20:43 +0000
commitef6887aa651afce3a3f4381cb4a5965dd2c119c1 (patch)
tree22e304e36d94c7c99c4671c60c8ec706898a6f19 /lang/python21/files
parentUpdate to exmh-2.6.3. (diff)
committed zwiki thread stack patch
Diffstat (limited to 'lang/python21/files')
-rw-r--r--lang/python21/files/zwiki.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/lang/python21/files/zwiki.patch b/lang/python21/files/zwiki.patch
new file mode 100644
index 000000000000..af6eba31e6b6
--- /dev/null
+++ b/lang/python21/files/zwiki.patch
@@ -0,0 +1,23 @@
+diff -ruN Python/thread_pthread.h.orig Python/thread_pthread.h
+--- Python/thread_pthread.h.orig Wed Feb 5 01:26:59 2003
++++ Python/thread_pthread.h Wed Feb 5 01:28:32 2003
+@@ -128,6 +128,10 @@
+ {
+ pthread_t th;
+ int success;
++ pthread_attr_t pta;
++ pthread_attr_init(&pta);
++ pthread_attr_setstacksize(&pta, (1<<17));
++
+ #ifdef PTHREAD_SYSTEM_SCHED_SUPPORTED
+ pthread_attr_t attrs;
+ #endif
+@@ -156,7 +160,7 @@
+ #ifdef PTHREAD_SYSTEM_SCHED_SUPPORTED
+ &attrs,
+ #else
+- (pthread_attr_t*)NULL,
++ (pthread_attr_t*)&pta,
+ #endif
+ (void* (*)(void *))func,
+ (void *)arg