From 6010a892b4258e90037dabf9765066d07b86f13f Mon Sep 17 00:00:00 2001 From: Jessica Clarke Date: Mon, 6 Dec 2021 22:24:42 +0000 Subject: [PATCH] zlib: Fix bootstrap build on macOS gzlib.c uses lseek but does not include unistd.h, where it is defined to live. On FreeBSD this happens to work due to sys/types.h declaring it, but on macOS it fails due to being only implicitly declared, which is treated as an error by default by the system Clang. MFC after: 1 week --- sys/contrib/zlib/gzlib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/contrib/zlib/gzlib.c b/sys/contrib/zlib/gzlib.c index b4cb5e4a48c..ea34341d5d5 100644 --- a/sys/contrib/zlib/gzlib.c +++ b/sys/contrib/zlib/gzlib.c @@ -7,6 +7,7 @@ #include "gzguts.h" #include "zutil.h" +#include #if defined(_WIN32) && !defined(__BORLANDC__) && !defined(__MINGW32__) # define LSEEK _lseeki64