Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jan 2024 11:53:42 GMT
From:      Yoshihiro Takahashi <nyan@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 58cf91d3b72a - main - resolv: Add a required include to resolv.h
Message-ID:  <202401081153.408Brg3s048099@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by nyan:

URL: https://cgit.FreeBSD.org/src/commit/?id=58cf91d3b72a01777bacf72d66a648a744ae3143

commit 58cf91d3b72a01777bacf72d66a648a744ae3143
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-01-08 11:52:08 +0000
Commit:     Yoshihiro Takahashi <nyan@FreeBSD.org>
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 <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 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401081153.408Brg3s048099>