shithub: mc

Download patch

ref: d64acdc10550e55aea0ff8d149e4c9137fa991f4
parent: 5db1f939e095cb4ee58a9c24352bdad63f38d55b
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Jan 13 12:53:42 EST 2015

A few OSX fixes.

    OSX is an OS we know, and it is posixy.

--- a/build.myr
+++ b/build.myr
@@ -204,7 +204,7 @@
 
 	cmd = [][:]
 	if std.hassuffix(src, ".myr")
-		cmd = std.slpush(cmd, "6m")
+		cmd = std.slpush(cmd, opt_mc)
 		for inc in incs 
 			cmd = std.slpush(cmd, "-I")
 			cmd = std.slpush(cmd, inc)
--- a/fsel.myr
+++ b/fsel.myr
@@ -86,9 +86,10 @@
 	var attrs
 	match opt_sys
 	| "freebsd":	attrs = ["freebsd", "posixy"][:]
+	| "osx":	attrs = ["osx", "posixy"][:]
 	| "linux":	attrs = ["linux", "posixy"][:]
 	| "plan9":	attrs = ["plan9"][:]
-	| unknown:	std.fatal(1, "unknown system %s\n", unknown)
+	| unknown:	std.fatal(1, "unknown system \"%s\"\n", unknown)
 	;;
 	for a in attrs
 		std.htput(sa, a, true)