f902ce
diff -ru bash-5.1.orig/configure bash-5.1/configure
f902ce
--- bash-5.1.orig/configure	2020-12-04 15:05:14.000000000 +0100
f902ce
+++ bash-5.1/configure	2020-12-08 14:34:05.162114735 +0100
f902ce
@@ -2917,6 +2917,7 @@
f902ce
 *-nsk*)		opt_bash_malloc=no ;;	# HP NonStop
f902ce
 *-haiku*)	opt_bash_malloc=no ;;	# Haiku OS
f902ce
 *-genode*)	opt_bash_malloc=no ;;	# Genode has no sbrk
f902ce
+*-midipix*)	opt_bash_malloc=no ;;	# Midipix
f902ce
 esac
f902ce
 
f902ce
 # memory scrambling on free()
f902ce
diff -ru bash-5.1.orig/lib/sh/oslib.c bash-5.1/lib/sh/oslib.c
f902ce
--- bash-5.1.orig/lib/sh/oslib.c	2013-10-14 15:12:57.000000000 +0200
f902ce
+++ bash-5.1/lib/sh/oslib.c	2020-12-08 14:35:05.062112859 +0100
f902ce
@@ -280,7 +280,7 @@
f902ce
 long
f902ce
 getmaxchild ()
f902ce
 {
f902ce
-  static long maxchild = -1L;
f902ce
+  static long maxchild = _SC_CHILD_MAX;
f902ce
 
f902ce
   if (maxchild > 0)
f902ce
     return maxchild;