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
This commit is contained in:
Jessica Clarke 2021-12-06 22:24:42 +00:00
parent 022ce9617f
commit 6010a892b4

View File

@ -7,6 +7,7 @@
#include "gzguts.h"
#include "zutil.h"
#include <unistd.h>
#if defined(_WIN32) && !defined(__BORLANDC__) && !defined(__MINGW32__)
# define LSEEK _lseeki64