From nobody Tue Dec 07 00:24:46 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C8A9118D2004; Tue, 7 Dec 2021 00:24:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J7Lf63m6dz3vfZ; Tue, 7 Dec 2021 00:24:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6189715EC3; Tue, 7 Dec 2021 00:24:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B70Okkj020796; Tue, 7 Dec 2021 00:24:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B70Ok0m020795; Tue, 7 Dec 2021 00:24:46 GMT (envelope-from git) Date: Tue, 7 Dec 2021 00:24:46 GMT Message-Id: <202112070024.1B70Ok0m020795@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jessica Clarke Subject: git: 6010a892b425 - main - zlib: Fix bootstrap build on macOS List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrtc27 X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6010a892b4258e90037dabf9765066d07b86f13f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638836686; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kSnEDo7p/iUhe8+6XUWTy1N6ALQUJWz7YDOWYu1afAM=; b=VpiDzsBhm1xEERQ211fOf4/g+DhHvkMOZ/RiigsRAo0/KQqi0X4KBE81pWGYe2Ljn/SORD qg4udx1J2vvO5oQQL7atz/ELyR8yEB5IDylnK00huWc3L+cHsu0XNK37koWtC8Xr1/Q/4w oN5+kuCYGBRNjh/6WJKr9EDH4Oju3XHTPX13sRgtW5pCdOJZyurAIH+03AgeZ4mVQMRrHW Cmh55u5gF1Yr+Meb/ikc0BYqtpu6Zl1/gfwncTe9H7ONAQh781FmXYVKbnHwdKgO8BF5bX mlNwegPsFWfDihTrs75TdL8WBU/rpqkzP0IScpbOCT1wXIkdp/aRE2lXycUHBw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638836686; a=rsa-sha256; cv=none; b=eazVM+UzH3C7y6zFC5Bzify9635tIaV3qhL+fPEynj7MD8IiV19Kehqntk49I+BkOKEi4j u5VUxBFMytNrxIhOAjNLXN/F8FoJFGajLfLVCLlJR23RrTIwx0D0dtrJMp8evu4h5PztEE aOLP6Lva49UUgVx7RUj0WTqnbeehsbfrAEOk9o4RRrrn4BlT/Ga7XQEJOm7pfhiyFjxK5U t7gimmdue4/nL2ADgF6eCZ/28UqoxwQ0rm7xkUgfei37UfP2GArV5lJPi5+MRhq8mpHBCt /CyvWBBsV2NvtOuLsAEG/q8axPoD162jt0Y5WLSbPElLuO9lm7uxyUQLNACZjw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=6010a892b4258e90037dabf9765066d07b86f13f commit 6010a892b4258e90037dabf9765066d07b86f13f Author: Jessica Clarke AuthorDate: 2021-12-06 22:24:42 +0000 Commit: Jessica Clarke CommitDate: 2021-12-07 00:24:19 +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 --- 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 #if defined(_WIN32) && !defined(__BORLANDC__) && !defined(__MINGW32__) # define LSEEK _lseeki64