diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2014-03-26 18:13:16 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2014-03-26 18:13:16 +0000 |
commit | d904b0af22db9828c09c6d48db2c1c10fc52eccb (patch) | |
tree | fd00f8bc3fbea0a41d8eb6fba55b367527ecb664 /lib/libc/asr/res_send.c | |
parent | cd4bf1c574b0f5ca4e0dd98a50497c523cbfc65d (diff) |
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_send.c')
-rw-r--r-- | lib/libc/asr/res_send.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/asr/res_send.c b/lib/libc/asr/res_send.c index b00510c4943..32c940815af 100644 --- a/lib/libc/asr/res_send.c +++ b/lib/libc/asr/res_send.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_send.c,v 1.7 2014/03/25 19:48:11 eric Exp $ */ +/* $OpenBSD: res_send.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_send(const u_char *buf, int buflen, u_char *ans, int anslen) { |