Skip to content

Commit

Permalink
resolv: Add a required include to resolv.h
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jbeich authored and nyan- committed Jan 8, 2024
1 parent 9a62278 commit 58cf91d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions include/resolv.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
#include <sys/cdefs.h>
#include <sys/socket.h>
#include <stdio.h>
#include <netinet/in.h>
#include <arpa/nameser.h>

/*%
Expand Down
5 changes: 1 addition & 4 deletions lib/libc/net/resolver.3
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 58cf91d

Please sign in to comment.