Commit e12e0e217d39c07988378fa6c8f492892a4979be

Christian Weisgerber 2020-09-14T17:53:41

do not rely on <zlib.h> to pull in <unistd.h>

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/libexec/got-read-gotconfig/got-read-gotconfig.c b/libexec/got-read-gotconfig/got-read-gotconfig.c
index 8b98fc6..325d7ca 100644
--- a/libexec/got-read-gotconfig/got-read-gotconfig.c
+++ b/libexec/got-read-gotconfig/got-read-gotconfig.c
@@ -27,6 +27,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sha1.h>
+#include <unistd.h>
 #include <zlib.h>
 
 #include "got_error.h"