From nobody Mon Jan 8 11:53:42 2024 X-Original-To: dev-commits-src-main@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 4T7ssL3Bpqz55T6N; Mon, 8 Jan 2024 11:53:42 +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 4T7ssL2dJBz54lC; Mon, 8 Jan 2024 11:53:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704714822; 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=wlvzKCcSil3S/pmLs+9HOLXSdzDGkdfhCyy6ocTR9MU=; b=RbXuOVUlF9+JcmxrHsF4jS2ntzHU++XIW6EG2UscArDXQVHS6qGZmZGCcbDNwLaaIaVyPq +hyB+flQCs4OH+jmN7Gwhi4I0NSX3YhT5tbTYmYqxHrKbhsdH4cL+TaDkk1KJAH7CdY9D5 LqsJbrc19E3KwPmuIFD/GCTLCrTDfuAf6w9JsDrCoeMK6GJcV/o9aX/wGlPt6z56ItzCFV klfUUHgpNhTdzRp+DZ5UXXK59BdEQ63hkcODI9xYS2lycBvGFWIu4zZA626KQIpH3HeMXu TUMIVPCGTCOfqvEPyZgEwTT8Z4wcRbCbw0tt1P+aOK1vqggZyHr1fObt9ewyVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704714822; 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=wlvzKCcSil3S/pmLs+9HOLXSdzDGkdfhCyy6ocTR9MU=; b=FRMLQ9pBzyyUOtboeergCAupODSZxiOHI9SlfRC5DhM2M8iFzsedzLhBF2Xxm353tRs8yv qgqtvDkny9ALagn3ow90Y5Po6MhH+fZP7yHcYMp14iaSoKlQVovw+a60B/JPepvNnfLwFo boC6k9attoWJIZ2bspVacKY2rLqRRTSnF+xIcdPm728SddPc4ykW8yHsQ/E+6UbMTxmS8I llumLwD68E7iPN80ZJTnGVcNt4CH8Ku0oimgWDSFXyhifqwDYeXKL+EbMOOw475DVuv4jo mhOugaU2BAvnYqfXBUHtyGK/b3NMn88gdeJk6K5+SkSek2wsSwliew29X4J/NQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704714822; a=rsa-sha256; cv=none; b=Roon0GAizHAbg1sBT8HSIMUk79AWbTYnBYEo+iMk/pvcuoBMjGUZlWZpSOX2MQAQPKz8Sx 1gc0+x4Lb1b/L5KzFJLADCgJSOEfgSE5fabaZbG+7dkOWpSb2T6cxlQhORE8spSyoJt1qE soWLBKruaJuazIcFBj92AoW2/uivcm06avEMwza6dEe5WA/CALEWg5FX1lZx8hUHXXKzR2 cTYJTdcuKTaF6RgLJCJ+movTAm4tRep2vVMI/3r7MqfrbHhmHdfVU6n9/cWMYdDt1iK8Pr GSWJRjoEfacCatGyEjE5JwCGDP5xxrPLKzJl267CFvHkIpHySvy4O+oefn4xlA== 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 4T7ssL1hLgz15t1; Mon, 8 Jan 2024 11:53:42 +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 408BrgSu048102; Mon, 8 Jan 2024 11:53:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 408Brg3s048099; Mon, 8 Jan 2024 11:53:42 GMT (envelope-from git) Date: Mon, 8 Jan 2024 11:53:42 GMT Message-Id: <202401081153.408Brg3s048099@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Yoshihiro Takahashi Subject: git: 58cf91d3b72a - main - resolv: Add a required include to resolv.h List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nyan X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 58cf91d3b72a01777bacf72d66a648a744ae3143 Auto-Submitted: auto-generated The branch main has been updated by nyan: URL: https://cgit.FreeBSD.org/src/commit/?id=58cf91d3b72a01777bacf72d66a648a744ae3143 commit 58cf91d3b72a01777bacf72d66a648a744ae3143 Author: Jan Beich AuthorDate: 2024-01-08 11:52:08 +0000 Commit: Yoshihiro Takahashi CommitDate: 2024-01-08 11:52:08 +0000 resolv: Add a required include to resolv.h Add a required include to resolv.h for sockaddr_in. This should reduce patching required when porting code written with Linux or NetBSD in mind. PR: 182466 MFC after: 1 week --- include/resolv.h | 1 + lib/libc/net/resolver.3 | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/resolv.h b/include/resolv.h index 40ca2e8a467f..f32f52bab431 100644 --- a/include/resolv.h +++ b/include/resolv.h @@ -58,6 +58,7 @@ #include #include #include +#include #include /*% diff --git a/lib/libc/net/resolver.3 b/lib/libc/net/resolver.3 index 832fa05e994b..f1220dcf9b7f 100644 --- a/lib/libc/net/resolver.3 +++ b/lib/libc/net/resolver.3 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd September 15, 2022 +.Dd January 8, 2024 .Dt RESOLVER 3 .Os .Sh NAME @@ -45,9 +45,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/types.h -.In netinet/in.h -.In arpa/nameser.h .In resolv.h .Ft int .Fo res_query