From nobody Sun May 26 17:40:22 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 4VnQzB5mh2z5LQ4Q; Sun, 26 May 2024 17:40:22 +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 4VnQzB3jVVz542c; Sun, 26 May 2024 17:40:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716745222; 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=AFjbCwt1bhpI0i5oius/I2vsNkza42q/rN7mZOCyiZY=; b=nzxzhbAPp/u+hbk/WwyIlIKq/riru8na9ywtLamsHciunlNk9YELQ09P5WmFDZG6SzbJjx Kl0w+yCFyZog5O1sFo0CAtDbZReh8hnc3AzBqoxMg3maFiKPo0TLpTDpzhFdpamTj03tgL REwMvJaPpo2x22GMwbnyUmGup3q+0CPqnLkqXTcLMnWo4kshq0Jy8YQEF1rR2+7YP/EGYQ flSFhe1Z9h4mVeKUdJ+SQq3WSrnUAkfVDEVihRZLi9JNIrDL1KONyvIm4RntUi8TACv9K5 QsJKLlO0Rhy8/Jw0l8Z6z55oS6FyLQfCtzT9IGfEJP0rbrrRxDwUSK7vH3ModQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716745222; a=rsa-sha256; cv=none; b=XyXQcq8+yK1XMj9dxowdRyDHVWsAQwGd25MnR0RmK5624NAWrB3jefz/0i4M3MEtXqQm6m VRht6nkzCDX3JA8rQqGuEWXaQSCpmb6XODFazgS94kHO+JJrfoxzrqjneL/4UAEnnwCQdc jPNx6DUP/63YQv3KSMzvrsE6H6ErkrVJEmIKIIX/yln9YsrbPipoxWLVqp1WDB5PZf/I7s peq9Wqh1uPDmQgsSjjJnwY8+13NBQhjxYvPnplEC8bUTjMptLWXFQdutz1mNj/r1B87d5W EqdHlshEVXQT+LkGvcOWmSVUZnpDfpXKNjtYzhVvpsItpAor6DE/5uuBIYe/1A== 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=1716745222; 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=AFjbCwt1bhpI0i5oius/I2vsNkza42q/rN7mZOCyiZY=; b=O/LqzHA1Ut5ca2ki/Lks5EgfoC9J9O7Bkwvo5Cm0d8aN0d39NutDxxxkWTZA3BvWeNhSmJ /x+Bix3SUMfFRaH2XAZEh5Br2vLx8QNOc5Ltg3oYEmql2xi6XSInMo2jhiGbbfkJvCl2q7 l9qVH0MeUMtBX+ZxbDJPLjTvn5redt4Y1YnOa61QD8G4wsFx6ujrCOgrbMXxyysLLy/pLI AXxFqdpcTG5TEdWRtuifKtkmpHWZzIoxH+vpZwhnYcgEXwdF9BmZwQ8NYoi+ppKOyFti+c duVFK3A8E1IDDAQkOW0WNOymHYHBPMsrYjEYXGPZWdyckD/y9GJ2Wshybqw0Lg== 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 4VnQzB3GlGz18yY; Sun, 26 May 2024 17:40:22 +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 44QHeMb1085412; Sun, 26 May 2024 17:40:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44QHeMia085409; Sun, 26 May 2024 17:40:22 GMT (envelope-from git) Date: Sun, 26 May 2024 17:40:22 GMT Message-Id: <202405261740.44QHeMia085409@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 4300e053618f - main - build: Include sys/cdefs.h in our fcntl.h shim 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4300e053618fc4ef54eaaf6229d747489e44fe99 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=4300e053618fc4ef54eaaf6229d747489e44fe99 commit 4300e053618fc4ef54eaaf6229d747489e44fe99 Author: Warner Losh AuthorDate: 2024-05-26 17:38:55 +0000 Commit: Warner Losh CommitDate: 2024-05-26 17:38:55 +0000 build: Include sys/cdefs.h in our fcntl.h shim On Linux with musl, sys/cdefs.h isn't included with fcntl.h, so when we use __BEGIN_DECL and __END_DECL in this file, it fails. There's no harm in unconditionally including sys/cdefs.h here, so do that to avoid encoding exactly where it is or isn't needed so we don't have to know too much about the internal state of other libc implementations. Co-authored-by: Val Packett Sponsored by: Netflix Pull Request: https://github.com/freebsd/freebsd-src/pull/1066 Reviewed by: val_packett.cool Differential Revision: https://reviews.freebsd.org/D45351 --- tools/build/fcntl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/build/fcntl.h b/tools/build/fcntl.h index 6aaf3eef2804..f59f5f7fb20a 100644 --- a/tools/build/fcntl.h +++ b/tools/build/fcntl.h @@ -29,6 +29,13 @@ #include_next +/* + * On FreeBSD fcntl.h indirectly brings in cdefs.h. On Linux with musl, it does + * not. Unconditionally inlude it here since there's no harm in including it + * multiple times since we use __BEGIN_DECLS and __END_DECLS from it below. + */ +#include + struct spacectl_range { off_t r_offset; off_t r_len;