diff options
Diffstat (limited to 'lib/libc/asr/res_query.c')
-rw-r--r-- | lib/libc/asr/res_query.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/asr/res_query.c b/lib/libc/asr/res_query.c index 2c6b198e464..3cdec90b944 100644 --- a/lib/libc/asr/res_query.c +++ b/lib/libc/asr/res_query.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_query.c,v 1.7 2014/03/25 19:48:11 eric Exp $ */ +/* $OpenBSD: res_query.c,v 1.8 2014/03/26 18:13:15 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -16,15 +16,16 @@ */ #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 <string.h> #include <stdlib.h> -#include "asr.h" - int res_query(const char *name, int class, int type, u_char *ans, int anslen) { |