shithub: mc

Download patch

ref: 83ac0784c67f15c98b62cdacc660be63c447474a
parent: cef2d4ebd48ab554330e49f8961547e05df47127
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Jun 27 16:38:20 EDT 2018

Fix build on OSX: Export missing sys.cstring function

--- a/lib/sys/sys+osx-x64.myr
+++ b/lib/sys/sys+osx-x64.myr
@@ -839,6 +839,7 @@
 	const ulock_wait	: (op : ulockop, uaddr : uint64#, val : uint64, timeout : uint32 -> int)
 	const ulock_wake	: (op : ulockop, uaddr : uint64#, wakeval : uint64 -> int)
 
+	extern const cstring : (str : byte[:] -> byte#)
 	/* filled by start code */
 	extern var __cenvp : byte##
 ;;
@@ -865,7 +866,6 @@
 extern const __osx_vfork
 */
 
-extern const cstring : (str : byte[:] -> byte#)
 extern const alloca : (sz : size -> byte#)
 
 /* process control */