From nobody Thu Sep 07 20:28:52 2023 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 4RhW6Y1fR7z4ssln; Thu, 7 Sep 2023 20:28:53 +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 4RhW6Y0mvYz4Zys; Thu, 7 Sep 2023 20:28:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694118533; 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=hZgd9gg+2giK9DZp6uizvSxPW+Xuo0/xt7HDg5+PSxU=; b=fbd0lPXiSBYDLNzndxEMHDAqeow0s8n5I6nittrQIlbL/3nBYi8H4ooYnk8VBiU5XVA9RN Les0qiXDspFHQ1wPv8XTl9iaYrUy+7SDNffTBhPyGcCBuVv/0tjIMMPqfyAMucuNgTgcYx h6DgzgoEIdIsnm/BpVsoMirHx9/SXk+ZhQtrJoWvxeWSZGMo/l+owjqyafs894xHVBoUoX U+OQxc4jmho8T6N4CsZDdOAT5093pCGA/ws1ULgo2+bUFHudPV69fvBi/pEO/fhSNG5upu b3zwDVrIV/fynKsOMbAHzIp6rFeB/Ph9zVryP6wgKEPv6dQnJ3i71WtHjdaibw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694118533; a=rsa-sha256; cv=none; b=EdS5HHl5eRn0itxwyGip5k5H2X7oGF9cqBFSTmjL+ii6t9IofufvIMzG0EYE96zHNKz3dn f78OshIzekyPzuCN/rvwuwBnbBzUx6YsuA2ARWV0/b1oeGG71jv8kOdCJWSoFA6un4Lf3A EnOWcYo8R1okK5nQr22ML8s5+k67Q7W1iEV7ljtEAdSaRXJIpqQ2K02FwRBwKkc+Ve0GFj L21Nq9KHQ9x8zC/OgZC9PNXqF6ow6zGERabhV2gkAGhDpEiqUHcWCwQO/ZHAbahVa9xHhg VeUBhGWoDu3tYOk52BoCLPa5fj7ssab81KDI2ijg4/CrnZuNC4EuMiHgH2frTQ== 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=1694118533; 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=hZgd9gg+2giK9DZp6uizvSxPW+Xuo0/xt7HDg5+PSxU=; b=y3XrTkFLPPBZHELRTPPrFwgaTQeOVJNHI/TVyIKPWWd5DE5z4VTTd610ewnkDk9RAvNCSK mkucn7vaA/nplTYTr5QbaLP3A0VKueWCgpnsmrjX4a3lb8SV5hFLGT4A0GBPfOuc80K5+i 2/YhVxwTBx7N56kvaFo4MUfBLq5791CEmy2kv7DWVtG8/tD7VB+MNCso/eg8gN5FBL8k1U Kq39OLcr8YV2+QVLVRThPoJ2vuOwTgffaHDSTSs4/zJ+jzNRPu+pohQxutcB4Qoz7j74jy f0pX8yjdkIhtNqfHiRI4ekclYwtolpSrw1p+/SSpKFqoE2TmMwOkA4OFtjjKvQ== 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 4RhW6X6fmtz1C2d; Thu, 7 Sep 2023 20:28:52 +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 387KSqXE064893; Thu, 7 Sep 2023 20:28:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 387KSqjD064890; Thu, 7 Sep 2023 20:28:52 GMT (envelope-from git) Date: Thu, 7 Sep 2023 20:28:52 GMT Message-Id: <202309072028.387KSqjD064890@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: cd5a2e6b4369 - stable/14 - time.h: Fix visibility check for C11 and C23 features. 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: des X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: cd5a2e6b43695a20f1b61fa47626cb8102a7d081 Auto-Submitted: auto-generated The branch stable/14 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=cd5a2e6b43695a20f1b61fa47626cb8102a7d081 commit cd5a2e6b43695a20f1b61fa47626cb8102a7d081 Author: Dag-Erling Smørgrav AuthorDate: 2023-09-06 01:37:43 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2023-09-07 20:28:31 +0000 time.h: Fix visibility check for C11 and C23 features. __BSD_VISIBLE is always defined; we need to check if it's true. Fixes: d02489d11aed 9b5d724cad10 MFC after: 3 days Reviewed by: brooks, imp Differential Revision: https://reviews.freebsd.org/D41733 (cherry picked from commit 8091b82e291642f3034dc3fdc8689a4f4ba027da) Approved by: re (gjb) --- include/time.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/time.h b/include/time.h index ef55577a2f84..ff858cc1f420 100644 --- a/include/time.h +++ b/include/time.h @@ -179,13 +179,13 @@ time_t posix2time(time_t t); #include #endif -#if defined(__BSD_VISIBLE) || __ISO_C_VISIBLE >= 2011 || \ +#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 2011 || \ (defined(__cplusplus) && __cplusplus >= 201703) #include /* ISO/IEC 9899:2011 7.27.2.5 The timespec_get function */ #define TIME_UTC 1 /* time elapsed since epoch */ int timespec_get(struct timespec *ts, int base); -#if defined (__BSD_VISIBLE) || __ISO_C_VISIBLE >= 2023 +#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 2023 /* ISO/IEC 9899:2024 7.29.1 Components of time */ #define TIME_MONOTONIC 2 /* monotonic time */ /* ISO/IEC 9899:2024 7.29.2.7 The timespec_getres function */