Date: Tue, 25 Jan 2022 01:40:00 GMT From: Jessica Clarke <jrtc27@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 85e89ae4219f - stable/13 - zlib: Fix bootstrap build on macOS Message-ID: <202201250140.20P1e033043738@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=85e89ae4219ff9f1e3dfd618a0edb68bbf927da0 commit 85e89ae4219ff9f1e3dfd618a0edb68bbf927da0 Author: Jessica Clarke <jrtc27@FreeBSD.org> AuthorDate: 2021-12-06 22:24:42 +0000 Commit: Jessica Clarke <jrtc27@FreeBSD.org> CommitDate: 2022-01-24 23:59:16 +0000 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 (cherry picked from commit 6010a892b4258e90037dabf9765066d07b86f13f) --- 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 b4cb5e4a48cf..ea34341d5d5e 100644 --- a/sys/contrib/zlib/gzlib.c +++ b/sys/contrib/zlib/gzlib.c @@ -7,6 +7,7 @@ #include "gzguts.h" #include "zutil.h" +#include <unistd.h> #if defined(_WIN32) && !defined(__BORLANDC__) && !defined(__MINGW32__) # define LSEEK _lseeki64
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201250140.20P1e033043738>