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 58cf91d3b7)
This commit is contained in:
Jan Beich authored and Yoshihiro Takahashi committed 2024-01-15 19:35:35 +09:00
1 parent d18326a7cf
commit 4487c6281b
2 files changed
+2 -4

No files matched your search

+1
View File
@@ -59,6 +59,7 @@
#include <sys/cdefs.h>
#include <sys/socket.h>
#include <stdio.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
/*%
+1 -4
View File
@@ -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