commit d3789a6944bb25174251ee5820613edff4898e38 (patch)
parent f0bc377e7d6b57bfcfc86fd61c2fa648cd225a33
Author: Alex Karle <alex@alexkarle.com>
Date: Tue, 2 Jan 2024 02:28:22 +0000
build: Add support for plan9
It seems that commenting out unistd.h is all thats
needed to build with pcc(1).
A quick check of big.txt seems to work!
Diffstat:
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/mkfile b/mkfile
@@ -0,0 +1,6 @@
+nihdoc: nihdoc.c
+ pcc -D__PLAN_9 -o nihdoc nihdoc.c
+
+
+install:
+ cp nihdoc $home/bin
diff --git a/nihdoc.c b/nihdoc.c
@@ -7,7 +7,9 @@
* "because markdown isn't in base!"
*/
#include <stdio.h>
+#ifndef __PLAN_9
#include <unistd.h>
+#endif
#include <stdbool.h>
/* Global Constants and Enums */