saait

Simple static page generator
git clone https://git.sinitax.com/codemadness/saait
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit ee17d39756e30ba8fc6c6b46eecdcb08399f4d34
parent 555edeb4eca525612f5d5016f131896f447be159
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon,  4 Dec 2017 23:17:34 +0100

only include unistd.h for pledge(2)

this is not required otherwise and makes it compile with no changes with the
tcc compiler.

Diffstat:
Msaait.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/saait.c b/saait.c @@ -4,7 +4,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#ifdef USE_PLEDGE #include <unistd.h> +#endif #define LEN(s) (sizeof(s)/sizeof(*s))