aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-08-22 03:14:29 +0000
committerUlrich Drepper <drepper@redhat.com>2007-08-22 03:14:29 +0000
commit1ce7d80ddc62d4bb3e8e4f89fbcb6fa21361733d (patch)
treeb94b2b37659fd22373f3f20e2ca964a46d54759c /resolv
parenta30d41c1d2c69b34e6f19dc1f92881f18e75349c (diff)
downloadglibc-1ce7d80ddc62d4bb3e8e4f89fbcb6fa21361733d.zip
glibc-1ce7d80ddc62d4bb3e8e4f89fbcb6fa21361733d.tar.gz
glibc-1ce7d80ddc62d4bb3e8e4f89fbcb6fa21361733d.tar.bz2
[BZ #4814]
* resolv/res_hconf.c: Prepare for compiling outside libc. * nscd/res_hconf.c: New file. * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build the new file. * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define. * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_hconf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c
index f458889..c53b809 100644
--- a/resolv/res_hconf.c
+++ b/resolv/res_hconf.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995-2005, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995-2006, 2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by David Mosberger (davidm@azstarnet.com).
@@ -361,6 +361,7 @@ _res_hconf_init (void)
}
+#ifndef NOT_IN_libc
/* List of known interfaces. */
libc_freeres_ptr (
static struct netaddr
@@ -532,3 +533,4 @@ _res_hconf_trim_domains (struct hostent *hp)
for (i = 0; hp->h_aliases[i]; ++i)
_res_hconf_trim_domain (hp->h_aliases[i]);
}
+#endif