shithub: 9ferno

Download patch

ref: e5527913576a5a62ff0e5c8cb5b9cf6688095f65
parent: 8425c018e38f7c66f10327af06200c5fe64ce470
author: henesy <unknown>
date: Sat Feb 29 19:23:49 EST 2020

merge 3e420305d50f67d3ee641e8f6e1632b6aa9a717c

--- a/emu/port/kproc-pthreads.c
+++ b/emu/port/kproc-pthreads.c
@@ -122,12 +122,6 @@
 		panic("kproc: no memory");
 	os->self = 0;	/* set by tramp */
 	sem_init(&os->sem, 0, 0);
-#if defined(__NetBSD__) && defined(__powerpc__)
-	{ /* XXX: Work around a problem on macppc with kernel semaphores. */
-		int val;
-		sem_getvalue(&os->sem, &val);
-	}
-#endif
 	p->os = os;
 
 	if(flags & KPDUPPG) {