diff options
author | 2014-03-26 18:13:15 +0000 | |
---|---|---|
committer | 2014-03-26 18:13:15 +0000 | |
commit | d216d6b1290c53cb63da2778d039467b2c88efcf (patch) | |
tree | 03ec702a81dbdfe5797e892677107158d08f41b1 /lib/libc/asr/getaddrinfo.c | |
parent | The current sharing of myproposal[] between both client and server code (diff) | |
download | wireguard-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/getaddrinfo.c')
-rw-r--r-- | lib/libc/asr/getaddrinfo.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/asr/getaddrinfo.c b/lib/libc/asr/getaddrinfo.c index 074a824c1be..f5080572163 100644 --- a/lib/libc/asr/getaddrinfo.c +++ b/lib/libc/asr/getaddrinfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getaddrinfo.c,v 1.4 2014/03/25 19:48:11 eric Exp $ */ +/* $OpenBSD: getaddrinfo.c,v 1.5 2014/03/26 18:13:15 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -16,13 +16,14 @@ */ #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 "asr.h" - int getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) |