shithub: drawcpu

Download patch

ref: 8b24f795e2bb2a5d169641ed0fda0e99b69e4466
parent: 50d01b2e88713afb5a1276849b1ae75389263986
author: halfwit <michaelmisch1985@gmail.com>
date: Mon Dec 1 20:34:16 EST 2025

Don't use bare sleep since it's redefined

--- a/Make.osx-cocoa
+++ b/Make.osx-cocoa
@@ -1,5 +1,5 @@
 # Mac OS X
-PTHREAD=-pthread	# for Mac
+PTHREAD=	# for Mac
 AR=ar
 AS=as
 RANLIB=ranlib
--- a/kern/dat.h
+++ b/kern/dat.h
@@ -458,7 +458,7 @@
 	Lock	rlock;		/* sync sleep/wakeup with postnote */
 	Lock    exl;        /* rfork, etc */
 	Rendez	*r;		/* rendezvous point slept on */
-	Rendez	sleep;		/* place for syssleep/debug */
+	Rendez	rsleep;		/* place for syssleep/debug */
 	int	notepending;	/* note issued but not acted on */
 	int	kp;		/* true if a kernel process */
 
--- a/kern/devmnt.c
+++ b/kern/devmnt.c
@@ -744,7 +744,7 @@
 	}
 
 	lock(&m->lk);
-	r->z = &up->sleep;
+	r->z = &up->rsleep;
 	r->m = m;
 	r->list = m->queue;
 	m->queue = r;
--