do not rely on <zlib.h> to pull in <unistd.h>
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"