only include unistd.h for pledge(2) - saait - the most boring static page gener… | |
git clone git://git.codemadness.org/saait | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit ee17d39756e30ba8fc6c6b46eecdcb08399f4d34 | |
parent 555edeb4eca525612f5d5016f131896f447be159 | |
Author: Hiltjo Posthuma <[email protected]> | |
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(-) | |
--- | |
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)) | |