summaryrefslogtreecommitdiff
path: root/lib/libc/net/gethostnamadr.c
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2003-04-24 18:05:48 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2003-04-24 18:05:48 +0000
commitc5774e2d303ed53f154e145f43f5e6351d2c40ef (patch)
treee7b1bfe7f6ed7c9df25b42251d4249a3273e6e96 /lib/libc/net/gethostnamadr.c
parent20e0e084e777c711a9219200e170046be09297a2 (diff)
Notes
Diffstat (limited to 'lib/libc/net/gethostnamadr.c')
-rw-r--r--lib/libc/net/gethostnamadr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c
index 021acf2408bf..fdcabc7f4306 100644
--- a/lib/libc/net/gethostnamadr.c
+++ b/lib/libc/net/gethostnamadr.c
@@ -26,6 +26,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "namespace.h"
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -38,6 +39,7 @@ __FBSDID("$FreeBSD$");
#include <nsswitch.h>
#include <arpa/nameser.h> /* XXX hack for _res */
#include <resolv.h> /* XXX hack for _res */
+#include "un-namespace.h"
extern int _ht_gethostbyname(void *, void *, va_list);
extern int _dns_gethostbyname(void *, void *, va_list);
@@ -83,7 +85,7 @@ gethostbyname2(const char *name, int type)
{ 0 }
};
- rval = nsdispatch((void *)&hp, dtab, NSDB_HOSTS, "gethostbyname",
+ rval = _nsdispatch((void *)&hp, dtab, NSDB_HOSTS, "gethostbyname",
default_src, name, type);
if (rval != NS_SUCCESS)
@@ -105,7 +107,7 @@ gethostbyaddr(const char *addr, int len, int type)
{ 0 }
};
- rval = nsdispatch((void *)&hp, dtab, NSDB_HOSTS, "gethostbyaddr",
+ rval = _nsdispatch((void *)&hp, dtab, NSDB_HOSTS, "gethostbyaddr",
default_src, addr, len, type);
if (rval != NS_SUCCESS)