summaryrefslogtreecommitdiff
path: root/lib/libc/asr/getnameinfo.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2014-03-26 18:13:16 +0000
committerEric Faurot <eric@cvs.openbsd.org>2014-03-26 18:13:16 +0000
commitd904b0af22db9828c09c6d48db2c1c10fc52eccb (patch)
treefd00f8bc3fbea0a41d8eb6fba55b367527ecb664 /lib/libc/asr/getnameinfo.c
parentcd4bf1c574b0f5ca4e0dd98a50497c523cbfc65d (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/getnameinfo.c')
-rw-r--r--lib/libc/asr/getnameinfo.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/asr/getnameinfo.c b/lib/libc/asr/getnameinfo.c
index 4ca82dae098..60b5b17ceb6 100644
--- a/lib/libc/asr/getnameinfo.c
+++ b/lib/libc/asr/getnameinfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getnameinfo.c,v 1.4 2014/03/25 19:48:11 eric Exp $ */
+/* $OpenBSD: getnameinfo.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
getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host,
size_t hostlen, char *serv, size_t servlen, int flags)