summaryrefslogtreecommitdiffstats
path: root/lib/libc/asr/res_mkquery.c
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2014-03-26 18:13:15 +0000
committereric <eric@openbsd.org>2014-03-26 18:13:15 +0000
commitd216d6b1290c53cb63da2778d039467b2c88efcf (patch)
tree03ec702a81dbdfe5797e892677107158d08f41b1 /lib/libc/asr/res_mkquery.c
parentThe current sharing of myproposal[] between both client and server code (diff)
downloadwireguard-openbsd-d216d6b1290c53cb63da2778d039467b2c88efcf.tar.xz
wireguard-openbsd-d216d6b1290c53cb63da2778d039467b2c88efcf.zip
Make the asr API public. Install asr.h to /usr/include.h and manpages.
Include tweaks suggested by mpi@ ok deraadt@
Diffstat (limited to 'lib/libc/asr/res_mkquery.c')
-rw-r--r--lib/libc/asr/res_mkquery.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/asr/res_mkquery.c b/lib/libc/asr/res_mkquery.c
index 9f2aa0de883..27ed21e4d4a 100644
--- a/lib/libc/asr/res_mkquery.c
+++ b/lib/libc/asr/res_mkquery.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: res_mkquery.c,v 1.7 2014/03/14 11:07:33 eric Exp $ */
+/* $OpenBSD: res_mkquery.c,v 1.8 2014/03/26 18:13:15 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -16,14 +16,16 @@
*/
#include <sys/types.h>
+#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/nameser.h> /* for MAXDNAME */
+#include <netdb.h>
+#include <asr.h>
#include <errno.h>
#include <resolv.h>
#include <string.h>
-#include "asr.h"
#include "asr_private.h"
/* This function is apparently needed by some ports. */