summaryrefslogtreecommitdiff
path: root/lib/libc/asr/getrrsetbyname.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/asr/getrrsetbyname.c')
-rw-r--r--lib/libc/asr/getrrsetbyname.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/asr/getrrsetbyname.c b/lib/libc/asr/getrrsetbyname.c
index 359f1dd416b..424725ec30b 100644
--- a/lib/libc/asr/getrrsetbyname.c
+++ b/lib/libc/asr/getrrsetbyname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getrrsetbyname.c,v 1.4 2014/03/25 19:48:11 eric Exp $ */
+/* $OpenBSD: getrrsetbyname.c,v 1.5 2014/03/26 18:13:15 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -16,14 +16,15 @@
*/
#include <sys/types.h>
+#include <sys/socket.h>
#include <netinet/in.h>
+#include <netdb.h>
+#include <asr.h>
#include <errno.h>
#include <resolv.h>
#include <stdlib.h>
-#include "asr.h"
-
int
getrrsetbyname(const char *name, unsigned int class, unsigned int type,
unsigned int flags, struct rrsetinfo **res)