aboutsummaryrefslogtreecommitdiff
path: root/nss
diff options
context:
space:
mode:
Diffstat (limited to 'nss')
-rw-r--r--nss/Versions2
-rw-r--r--nss/getXXbyYY.c3
-rw-r--r--nss/getXXbyYY_r.c4
3 files changed, 5 insertions, 4 deletions
diff --git a/nss/Versions b/nss/Versions
index 217f4da..80b9ca8 100644
--- a/nss/Versions
+++ b/nss/Versions
@@ -1,7 +1,7 @@
libc {
GLIBC_2.0 {
# functions used in other libraries
- __nss_passwd_lookup; __nss_group_lookup; __nss_next;
+ __nss_passwd_lookup; __nss_group_lookup; __nss_hosts_lookup; __nss_next;
_nss_files_parse_grent; _nss_files_parse_pwent; _nss_files_parse_spent;
__nss_database_lookup; __nss_configure_lookup;
}
diff --git a/nss/getXXbyYY.c b/nss/getXXbyYY.c
index 0df916b..21baad9 100644
--- a/nss/getXXbyYY.c
+++ b/nss/getXXbyYY.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -117,7 +117,6 @@ FUNCTION_NAME (ADD_PARAMS)
process gets a chance for a normal termination. */
save = errno;
free (buffer);
- buffer = NULL;
__set_errno (save);
}
buffer = new_buf;
diff --git a/nss/getXXbyYY_r.c b/nss/getXXbyYY_r.c
index 0f12067..3befede 100644
--- a/nss/getXXbyYY_r.c
+++ b/nss/getXXbyYY_r.c
@@ -19,7 +19,9 @@
#include <errno.h>
#include "nsswitch.h"
-#include <nscd/nscd_proto.h>
+#ifdef USE_NSCD
+# include <nscd/nscd_proto.h>
+#endif
/*******************************************************************\
|* Here we assume several symbols to be defined: *|