summaryrefslogtreecommitdiff
path: root/lib/libc/net/getnameinfo.c
diff options
context:
space:
mode:
authorcmetz <cmetz@cvs.openbsd.org>1999-06-23 23:04:51 +0000
committercmetz <cmetz@cvs.openbsd.org>1999-06-23 23:04:51 +0000
commit747c0b3b7bedb5491a5def7d7d69d3089694a3ef (patch)
tree167794f919c2633038c5aa29b3bc87b8b91e2105 /lib/libc/net/getnameinfo.c
parent3543fc077268a65c994f29d1f6ff88f3e4fe7c20 (diff)
Fixed compilation problems.
Diffstat (limited to 'lib/libc/net/getnameinfo.c')
-rw-r--r--lib/libc/net/getnameinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/net/getnameinfo.c b/lib/libc/net/getnameinfo.c
index 95b27a70062..1ae197c15aa 100644
--- a/lib/libc/net/getnameinfo.c
+++ b/lib/libc/net/getnameinfo.c
@@ -43,6 +43,7 @@
#include <netdb.h>
#include <errno.h>
#include <string.h>
+#include <resolv.h>
#ifndef AF_LOCAL
#define AF_LOCAL AF_UNIX
@@ -58,7 +59,7 @@
} while(0)
static int netdb_lookup_name(int family, void *addr, int addrlen, char *name,
- int namelen)
+ int namelen, int flags)
{
struct hostent *hostent;
char *c, *c2;