Date: Mon, 15 Jan 2024 10:36:12 GMT From: Yoshihiro Takahashi <nyan@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 4487c6281b6a - stable/13 - resolv: Add a required include to resolv.h Message-ID: <202401151036.40FAaCFn020866@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by nyan: URL: https://cgit.FreeBSD.org/src/commit/?id=4487c6281b6a9347731a06aafada7be57aa2fe19 commit 4487c6281b6a9347731a06aafada7be57aa2fe19 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2024-01-08 11:52:08 +0000 Commit: Yoshihiro Takahashi <nyan@FreeBSD.org> CommitDate: 2024-01-15 10:35:35 +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 (cherry picked from commit 58cf91d3b72a01777bacf72d66a648a744ae3143) --- 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 467648b2aa53..b3986d35bc56 100644 --- a/include/resolv.h +++ b/include/resolv.h @@ -59,6 +59,7 @@ #include <sys/cdefs.h> #include <sys/socket.h> #include <stdio.h> +#include <netinet/in.h> #include <arpa/nameser.h> /*% diff --git a/lib/libc/net/resolver.3 b/lib/libc/net/resolver.3 index e11159583f55..5ddbbc6fa1dd 100644 --- a/lib/libc/net/resolver.3 +++ b/lib/libc/net/resolver.3 @@ -27,7 +27,7 @@ .\" .\" @(#)resolver.3 8.1 (Berkeley) 6/4/93 .\" -.Dd September 15, 2022 +.Dd January 8, 2024 .Dt RESOLVER 3 .Os .Sh NAME @@ -47,9 +47,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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401151036.40FAaCFn020866>