summaryrefslogtreecommitdiff
path: root/app-shells/heirloom-sh/files/heirloom-sh-glibc-2.34.patch
blob: 35cb565526979904464d56b9658cf69951acae81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/fault.c
+++ b/fault.c
@@ -43,6 +43,15 @@
 #include	<errno.h>
 #include	<string.h>
 
+#if __GLIBC__ >= 2
+# undef SIGSTKSZ
+# if defined __ia64__
+#  define SIGSTKSZ 262144
+# else
+#  define SIGSTKSZ 65536
+# endif
+#endif
+
 static	void (*psig0_func)() = SIG_ERR;	/* previous signal handler for signal 0 */
 static	char sigsegv_stack[SIGSTKSZ];