code: drawterm

Download patch

ref: c91c6fac9d725716ca6ecc3002053f941137f24f
parent: 05dc356d2fb9d72405b0b2d0b36505f729d8591c
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Aug 22 12:54:31 EDT 2023

avoid redefinition of IOUNIT (clashes with devdraw)

Move the IOUNIT definition in user.h to avoid clash
with devdraws IOUNIT.

--- a/include/lib.h
+++ b/include/lib.h
@@ -109,7 +109,6 @@
 
 #define	ERRMAX			128	/* max length of error string */
 #define	KNAMELEN		28	/* max length of name held in kernel */
-#define IOUNIT			32768	/* default buffer size for 9p io */
 
 /* bits in Qid.type */
 #define QTDIR		0x80		/* type bit for directories */
--- a/include/user.h
+++ b/include/user.h
@@ -98,3 +98,5 @@
 extern	int	atexit(void (*)(void));
 extern	void	exits(char*);
 extern	char*	getenv(char*);
+
+#define IOUNIT			32768	/* default buffer size for 9p io */