From nobody Sat Mar 16 01:50:45 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 4TxPGF3st3z5DRR6; Sat, 16 Mar 2024 01:50:45 +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 4TxPGF2jznz4mCm; Sat, 16 Mar 2024 01:50:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710553845; 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=O9p0P3IPOOFuvSWNm+OjKpb4laJYChMhWbFjuHmXyq4=; b=MPT4mMaPtwawiIsHf1zeZkFwoC6GRzRnUWYviiv46SHbwZ8jztJiBZ2/2pk/2koP6pctio Rh6d825WJ0uOJJK+l0mR9BreKKxr/vUe5tkxvxW2F8YZ6SmoL+fmG0KOZZjueHZWv1PGgC OY8dKDo0hpCHmheVpvfTEaKmXN5mSKD5sBwLO6X2MRbOIRo6FfAHLSsrPAZxdftoMbNsfw +Bd9aBn3gQagcJiPiw/vpNGJahh6UTnPRZFxQp3hPnPR80qe9HBHKw7JmeGhYQOR43XShv w9mQKkWwR8jKL6eGEWtUHNRzy2RKorGWJTKenXlxP6zmlKwQGAjuMzKMRTx8uQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710553845; a=rsa-sha256; cv=none; b=jEGUFgD0MxhRoDb1AfpIp20skL9BzMCxhSvRdEDfjrYpXn+AqgUAYyjJd4Eozfi2zAPeTP gWHJzHXWqbtmmgHsGX7HclNIN5gK2iUXKV+Vf606865RC8gJrwyrj8+pUz07FTd5OqQVVG Nq9qAxxZnieiENXJVpFvDayxSbhj7ePFbeE/4PZPGlEcHQ6Mg2iZFRwVgilmEb7zbWRtmA N8XB6edYOp0/+vzV3FQcm3gYesjERUEez/wlLfjlMh+Nu0WIJLmMUjEnS1xDf4qp3XpzFT wWEk8+Ydhz1r1FOCbLRGxeuqdEeaMnggInjSlx5cCMqMYiKYjkCCV13qV8TDIw== 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=1710553845; 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=O9p0P3IPOOFuvSWNm+OjKpb4laJYChMhWbFjuHmXyq4=; b=YwUcYdMQtZk2WQxk/1h4OwQBpjtP667DaDWA/vSNTV/IHFdsf41RkhpbexEFruOUx93+Xd tNnrmEbOJ6LsdcSBkqGPawWXedPHg9SpXc7BH8fyaR7AsgFDP0FYJ7kMjNAGK+ypqu3hHj aI3vGTwioLFZ849aaWbZxfME11IozxepQNluGc8s1LeOk3TbzVzJNtk4B7YqZvpuKABkUn dSxsGq9y5Qk4DmtvzwxdPd6F8iCKX6V5Yd17fGWcDf5a7JxUBMzeddNkTBQ0rdJtyq3d+1 9ap8oapEbkYx2M0TjhbKAtAtEF3ElmWaQWxcEu8EpBizPyYH1WVNH+RaAXoEhw== 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 4TxPGF2KqrzbRh; Sat, 16 Mar 2024 01:50:45 +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 42G1ojR5003484; Sat, 16 Mar 2024 01:50:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42G1ojxR003481; Sat, 16 Mar 2024 01:50:45 GMT (envelope-from git) Date: Sat, 16 Mar 2024 01:50:45 GMT Message-Id: <202403160150.42G1ojxR003481@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: ce312ef72d91 - main - 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: 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: ce312ef72d91888d332f7f042298001794b66914 Auto-Submitted: auto-generated The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=ce312ef72d91888d332f7f042298001794b66914 commit ce312ef72d91888d332f7f042298001794b66914 Author: Jessica Clarke AuthorDate: 2024-03-16 01:50:20 +0000 Commit: Jessica Clarke CommitDate: 2024-03-16 01:50:20 +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 --- 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