aboutsummaryrefslogtreecommitdiff
path: root/nss/nsswitch.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-01-04 17:07:06 +0000
committerAndreas Jaeger <aj@suse.de>2001-01-04 17:07:06 +0000
commit7f28638c7df6b6fdeccf38d869e67aa867d42149 (patch)
treeffa4338cc162b6522039674e4094d9925886fb8d /nss/nsswitch.c
parentdc0722b2894d9d5645a145b0ebbde63b7f9b0d28 (diff)
downloadglibc-7f28638c7df6b6fdeccf38d869e67aa867d42149.zip
glibc-7f28638c7df6b6fdeccf38d869e67aa867d42149.tar.gz
glibc-7f28638c7df6b6fdeccf38d869e67aa867d42149.tar.bz2
Update.
2001-01-04 Andreas Jaeger <aj@suse.de> * nss/nsswitch.c: Include files for missing prototypes, remove buggy declaration of prototypes.
Diffstat (limited to 'nss/nsswitch.c')
-rw-r--r--nss/nsswitch.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/nss/nsswitch.c b/nss/nsswitch.c
index b9e283e..f77828d 100644
--- a/nss/nsswitch.c
+++ b/nss/nsswitch.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996,1997,1998,1999,2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@@ -27,6 +27,12 @@
#include <stdlib.h>
#include <string.h>
+#include <aliases.h>
+#include <grp.h>
+#include <netinet/ether.h>
+#include <pwd.h>
+#include <shadow.h>
+
#if !defined DO_STATIC_NSS || defined SHARED
# include <gnu/lib-names.h>
#endif
@@ -362,18 +368,6 @@ __nss_lookup_function (service_user *ni, const char *fct_name)
/* We can't get function address dynamically in static linking. */
{
# define DEFINE_ENT(h,nm) \
- extern void _nss_##h##_get##nm##ent_r (void); \
- extern void _nss_##h##_end##nm##ent (void); \
- extern void _nss_##h##_set##nm##ent (void);
-# define DEFINE_GET(h,nm) \
- extern void _nss_##h##_get##nm##_r (void);
-# define DEFINE_GETBY(h,nm,ky) \
- extern void _nss_##h##_get##nm##by##ky##_r (void);
-# include "function.def"
-# undef DEFINE_ENT
-# undef DEFINE_GET
-# undef DEFINE_GETBY
-# define DEFINE_ENT(h,nm) \
{ #h"_get"#nm"ent_r", _nss_##h##_get##nm##ent_r }, \
{ #h"_end"#nm"ent", _nss_##h##_end##nm##ent }, \
{ #h"_set"#nm"ent", _nss_##h##_set##nm##ent },