shithub: mc

Download patch

ref: cef2d4ebd48ab554330e49f8961547e05df47127
parent: bd81ccd828e6cb78f26ebb4ca7e2b565dc8d8d5b
author: Ori Bernstein <[email protected]>
date: Wed Jun 27 16:42:18 EDT 2018

Fix NetBSD build.

--- a/lib/sys/sys+netbsd-x64.myr
+++ b/lib/sys/sys+netbsd-x64.myr
@@ -853,7 +853,7 @@
 	const close	: (fd:fd -> int64)
 	const creat	: (path:byte[:], mode:int64 -> fd)
 	const unlink	: (path:byte[:] -> int)
-	const rmdir	: (path:byte[:] -> int)
+	const rmdir	: (path:byte# -> int)
 	const read	: (fd:fd, buf:byte[:] -> size)
 	const pread	: (fd:fd, buf:byte[:], off : off -> size)
 	const readv	: (fd:fd, iov:iovec[:] -> size)
@@ -908,6 +908,7 @@
 		new : void#, newsz : size# \
 		-> int)
 
+	extern const cstring	: (str : byte[:] -> byte#)
 	/* filled by start code */
 	extern var __cenvp : byte##
 ;;
@@ -918,7 +919,6 @@
 */
 generic a = {x : @t; -> (x : uint64)}
 
-extern const cstring	: (str : byte[:] -> byte#)
 extern const alloca	: (sz : size	-> byte#)
 
 /* process management */