shithub: mc

Download patch

ref: 3e24000ddb275369ba68282e2c9406f6b1c23736
parent: 0103ef37062ff55596da4d6ada8f75ae898885bc
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Nov 20 13:44:06 EST 2016

Fix cut-paste error.

	I was supposed to copy, not cut.

--- a/lib/sys/sys+openbsd-x64.myr
+++ b/lib/sys/sys+openbsd-x64.myr
@@ -676,6 +676,12 @@
 
 	mib[0] = 1 /* CTL_KERN */
 	mib[1] = 10 /* KERN_HOSTNAME */
+	nod = (buf.node[:] : void#)
+	nodsz = buf.node.len
+	ret = sysctl(mib[:], nod, &nodsz, (0 : void#), (0 : size#))
+	if ret < 0
+		-> ret
+	;;
 
 	mib[0] = 1 /* CTL_KERN */
 	mib[1] = 2 /* KERN_OSRELEASE */
--- a/lib/thread/bld.sub
+++ b/lib/thread/bld.sub
@@ -13,6 +13,7 @@
 	#condvar+freebsd.myr
 	mutex+freebsd.myr
 	spawn+freebsd.myr
+	ncpu+freebsd.myr
 	exit+freebsd-x64.s
 
 	# osx impl of thread primitives