diff options
Diffstat (limited to 'grp')
-rw-r--r-- | grp/Makefile | 10 | ||||
-rw-r--r-- | grp/getgrgid_r.c | 1 | ||||
-rw-r--r-- | grp/getgrnam_r.c | 1 |
3 files changed, 9 insertions, 3 deletions
diff --git a/grp/Makefile b/grp/Makefile index 8c63a4c65e..7f2734e034 100644 --- a/grp/Makefile +++ b/grp/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1991, 1992, 1996, 1997 Free Software Foundation, Inc. +# Copyright (C) 1991, 1992, 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 @@ -29,3 +29,11 @@ routines := fgetgrent initgroups setgroups \ tests := testgrp include ../Rules + +# We can later add the names of other thread packages here. +ifeq (,$(findstring linuxthreads,$(add-ons))) + +CFLAGS-getgrgid_r.c = -DUSE_NSCD=1 +CFLAGS-getgrnam_r.c = -DUSE_NSCD=1 + +endif diff --git a/grp/getgrgid_r.c b/grp/getgrgid_r.c index 8d5122a2cd..3011602671 100644 --- a/grp/getgrgid_r.c +++ b/grp/getgrgid_r.c @@ -26,6 +26,5 @@ #define ADD_PARAMS gid_t gid #define ADD_VARIABLES gid #define BUFLEN NSS_BUFLEN_GROUP -#define USE_NSCD 1 #include <nss/getXXbyYY_r.c> diff --git a/grp/getgrnam_r.c b/grp/getgrnam_r.c index ee84cfe5ec..3575e74b1f 100644 --- a/grp/getgrnam_r.c +++ b/grp/getgrnam_r.c @@ -25,6 +25,5 @@ #define DATABASE_NAME group #define ADD_PARAMS const char *name #define ADD_VARIABLES name -#define USE_NSCD 1 #include <nss/getXXbyYY_r.c> |