only include unistd.h for pledge(2) - saait - the most boring static page generator
 (HTM) git clone git://git.codemadness.org/saait
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit ee17d39756e30ba8fc6c6b46eecdcb08399f4d34
 (DIR) parent 555edeb4eca525612f5d5016f131896f447be159
 (HTM) 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:
         M saait.c                             |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) 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))