summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2017-10-07 22:53:49 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2017-10-07 22:53:49 +0200
commitb8489894f1aa254b9f0f27656d7aee9b073124d4 (patch)
tree25afd3dd3bfc54cd36b559d941e7e5f9fcd82ed0
parentc9c91fa8343a94dec8ab11cb49730cb37eba53d7 (diff)
downloadmidipix_build-b8489894f1aa254b9f0f27656d7aee9b073124d4.tar.bz2
midipix_build-b8489894f1aa254b9f0f27656d7aee9b073124d4.tar.xz
a/patches/bash-4.4.local.patch: fix maxchild to _SC_CHILD_MAX in lib/sh/oslib.c:getmaxchild() (via Redfoxmoon.)
-rw-r--r--patches/bash-4.4.local.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/patches/bash-4.4.local.patch b/patches/bash-4.4.local.patch
index 14130372..993594a0 100644
--- a/patches/bash-4.4.local.patch
+++ b/patches/bash-4.4.local.patch
@@ -116,3 +116,15 @@
TERMCAP_DEP=
elif test $bash_cv_termcap_lib = libc; then
TERMCAP_LIB=
+diff -ru bash-4.4.orig/lib/sh/oslib.c bash-4.4/lib/sh/oslib.c
+--- bash-4.4.orig/lib/sh/oslib.c 2013-10-14 15:12:57.000000000 +0200
++++ bash-4.4/lib/sh/oslib.c 2017-10-07 22:48:52.478254782 +0200
+@@ -280,7 +280,7 @@
+ long
+ getmaxchild ()
+ {
+- static long maxchild = -1L;
++ static long maxchild = _SC_CHILD_MAX;
+
+ if (maxchild > 0)
+ return maxchild;