shithub: drawcpu

Download patch

ref: 56e529d5e9a213be7a9738f2254fc4c31f46359f
parent: 5c5f712127bd65cdfe70d520d69e75e78edd1837
author: halfwit <michaelmisch1985@gmail.com>
date: Fri Jan 2 18:31:09 EST 2026

Small changes for Unix builds

--- a/include/u.h
+++ b/include/u.h
@@ -27,4 +27,5 @@
 #undef unmount
 #undef pipe
 #undef iounit
+#undef wait
 extern int debug;
--- a/kern/await.c
+++ b/kern/await.c
@@ -7,11 +7,9 @@
 #include "sys.h"
 #include "proc.h"
 
+#undef long
+
 #include <signal.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <sys/time.h>
-#include <sys/resource.h>
 
 #ifndef WCOREDUMP	/* not on Mac OS X Tiger */
 #define WCOREDUMP(status) 0
--- a/main.c
+++ b/main.c
@@ -134,9 +134,6 @@
 	if(fd < 0)
 		panic("dial fs: %r");
 	postsrv(fd, "boot");
-	mntgen("slashn", "/n");
-	mntgen("slashmnt", "/mnt");
-	mntgen("slashexport", "/mnt/exportfs");
 
 	/* Set up our root */
 	sfd = open("/srv/boot", ORDWR);
--