shithub: mc

Download patch

ref: e1b637d15c896bebe20afc8cc0563907cd028649
parent: 1708e4bc0d9d199b17054a5837e89fabfdc4298e
author: Ori Bernstein <[email protected]>
date: Fri Oct 19 07:33:28 EDT 2018

Add back stack mapping.

	OpenBSD 6.4 wants this.

--- a/lib/thread/spawn+openbsd.myr
+++ b/lib/thread/spawn+openbsd.myr
@@ -73,7 +73,7 @@
 }
 
 const getstk = {sz
-	-> sys.mmap((0 : byte#), sz, sys.Mprotrw, sys.Mpriv | sys.Manon, -1, 0)
+	-> sys.mmap((0 : byte#), sz, sys.Mprotrw, sys.Mpriv | sys.Manon | sys.Mstack, -1, 0)
 }
 
 const startthread = {fn : (-> void)