-# 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
getpwent_r getpwnam_r getpwuid_r fgetpwent_r
include ../Rules
+
+ifeq ($(have-thread-library),yes)
+
+CFLAGS-getpwuid_r.c = -DUSE_NSCD=1
+CFLAGS-getpwnam_r.c = -DUSE_NSCD=1
+
+endif