diff options
Diffstat (limited to 'pwd')
-rw-r--r-- | pwd/Makefile | 10 | ||||
-rw-r--r-- | pwd/getpwnam_r.c | 1 | ||||
-rw-r--r-- | pwd/getpwuid_r.c | 1 |
3 files changed, 9 insertions, 3 deletions
diff --git a/pwd/Makefile b/pwd/Makefile index 6b3eeab..a5d0d5c 100644 --- a/pwd/Makefile +++ b/pwd/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1991, 1996, 1997 Free Software Foundation, Inc. +# Copyright (C) 1991, 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 @@ -27,3 +27,11 @@ routines := fgetpwent getpw putpwent \ getpwent_r getpwnam_r getpwuid_r fgetpwent_r include ../Rules + +# We can later add the names of other thread packages here. +ifeq (,$(findstring linuxthreads,$(add-ons))) + +CFLAGS-getpwuid_r.c = -DUSE_NSCD=1 +CFLAGS-getpwnam_r.c = -DUSE_NSCD=1 + +endif diff --git a/pwd/getpwnam_r.c b/pwd/getpwnam_r.c index 429d3c4..328c305 100644 --- a/pwd/getpwnam_r.c +++ b/pwd/getpwnam_r.c @@ -26,6 +26,5 @@ #define ADD_PARAMS const char *name #define ADD_VARIABLES name #define BUFLEN NSS_BUFLEN_PASSWD -#define USE_NSCD 1 #include <nss/getXXbyYY_r.c> diff --git a/pwd/getpwuid_r.c b/pwd/getpwuid_r.c index 18b925b..91bd802 100644 --- a/pwd/getpwuid_r.c +++ b/pwd/getpwuid_r.c @@ -26,6 +26,5 @@ #define ADD_PARAMS uid_t uid #define ADD_VARIABLES uid #define BUFLEN NSS_BUFLEN_PASSWD -#define USE_NSCD 1 #include <nss/getXXbyYY_r.c> |