From nobody Thu May 02 20:12:12 2024 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 4VVlTS5r9Fz5JyTG; Thu, 2 May 2024 20:12:12 +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 4VVlTS3cKMz4tRM; Thu, 2 May 2024 20:12:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714680732; 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=teBKT1laUmFl40+Up0SAB05M4MSQF38R1mIBlbu7BPA=; b=pPslw0kDOUuwL720gJgdso8E+kokvccv5+WrrtxgUTUjnmTwrDTj1TqLSagycPdwrTDHJU DWsXISG8nsGKvXF9yoZkU3yirH4sIWhXwMlM/i5DuBDluWH05bw2gN4L2gM86dPIAQOzg0 Dyk2a09lGts/+XHVw6NrRt7Lx83VAFnqbXbh/MQKQFAsmhLntBeZDNnsQrPYnXgsDNYDq0 VFwaevWVjOnIKRj3Gsd5kVmPSmHKFlngCaF63B4lCjnRqAjO0DYGh0Y+po3vMTVB91KGGc TGHGoaboeh0bjU4YKPkMdM7lUoJ5daJvmpwrk5pAW4LpHcWzL/1g19EUXTk8Lw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714680732; a=rsa-sha256; cv=none; b=sZLVTW1KWOtPUl9ecXypS8xSE8muJaRlomNa54edluyBTnM6GskTCD0gACRP5h0HNRYouO lea4urslsprRVQ4qTEDGOK3ho5jtOZFdBMsXvxEl7iVZK9e4tVr3czbVSmErdQFsaXnaHS iUqMHIRHSvD4H0UBzQdkguo7KgQbPay5Lo+ztf8q8zeyvnwcvKLq2gXjnwOhhqTSUZI36x q0AXwI+QX5CRqRxRGsDJPT+/OykRA0FMiAxNqETynqWjGQGfeskd7WNWtAclHUgfsspBNd 0seYLsgTSJzHJ5ShYvqq7LwrXS50odygKD0+y0/b+yGvZ/UEj/KpnM+N0Fe37Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714680732; 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=teBKT1laUmFl40+Up0SAB05M4MSQF38R1mIBlbu7BPA=; b=OzYB9pBquS88Bd1rXbvb75vwl/elUAFn0xNkZE9UIvNaS6NVJWWQh+uZEh9bSn7tgbguev PSa6hHdd7ae8b7NJAUuqeDcJq6M+blAHEecnenzaKc78sSx3HzqcGAHoDQkf1CY2Spf8WZ PDoojIvCZKGhYuZQ4+R7ViwaPwx1VBhQgeTWmnSua2LdBWyTlMXVj/446fFa34CJKibqBk rz0hoJ6sKaf1+v5hMehO0KPGtFTpSCU8niiEuov5k4YG+vKKdTy7zVakJaSbXPCJrr5Eyi 5lobwOH04Lgre72ONgJo/NCsAbr/bCvhDl7ZnDpjhtIrdDyL4NoV8PCM7JZMyQ== 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 4VVlTS3Bw2zGxv; Thu, 2 May 2024 20:12:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 442KCCWk072453; Thu, 2 May 2024 20:12:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 442KCCKk072450; Thu, 2 May 2024 20:12:12 GMT (envelope-from git) Date: Thu, 2 May 2024 20:12:12 GMT Message-Id: <202405022012.442KCCKk072450@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Jessica Clarke Subject: git: 2714c4d3280b - stable/13 - mandoc: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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/stable/13 X-Git-Reftype: branch X-Git-Commit: 2714c4d3280b7b4609706e59b82bd9df64b37561 Auto-Submitted: auto-generated The branch stable/13 has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=2714c4d3280b7b4609706e59b82bd9df64b37561 commit 2714c4d3280b7b4609706e59b82bd9df64b37561 Author: Jessica Clarke AuthorDate: 2024-03-16 01:50:20 +0000 Commit: Jessica Clarke CommitDate: 2024-05-02 20:11:52 +0000 mandoc: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15 macOS, like Linux, does not include an outer const qualifier for its fts_open callback arguments, so -Wincompatible-function-pointer-types also picks this up and breaks the build now Clang 16 makes it an error by default. Extend the existing Linux support to fix this. MFC after: 1 week (cherry picked from commit ce312ef72d91888d332f7f042298001794b66914) --- contrib/mandoc/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/mandoc/config.h b/contrib/mandoc/config.h index 213513f1c87e..91957717b3fc 100644 --- a/contrib/mandoc/config.h +++ b/contrib/mandoc/config.h @@ -13,7 +13,7 @@ #define HAVE_ENDIAN 0 #define HAVE_ERR 1 #define HAVE_FTS 1 -#ifdef __GLIBC__ +#if defined(__GLIBC__) || defined(__APPLE__) #define HAVE_FTS_COMPARE_CONST 0 #else #define HAVE_FTS_COMPARE_CONST 1