From d3789a6944bb25174251ee5820613edff4898e38 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 2 Jan 2024 02:28:22 +0000 Subject: [PATCH] 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! --- mkfile | 6 ++++++ nihdoc.c | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 mkfile diff --git a/mkfile b/mkfile new file mode 100644 index 0000000..76541cb --- /dev/null +++ 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 index e82bd9c..f8ea3ba 100644 --- a/nihdoc.c +++ b/nihdoc.c @@ -7,7 +7,9 @@ * "because markdown isn't in base!" */ #include +#ifndef __PLAN_9 #include +#endif #include /* Global Constants and Enums */ -- libgit2 1.1.1