summaryrefslogtreecommitdiff
path: root/nss/spwd-lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/spwd-lookup.c')
-rw-r--r--nss/spwd-lookup.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/nss/spwd-lookup.c b/nss/spwd-lookup.c
index 319a7bb062..f12156d7cd 100644
--- a/nss/spwd-lookup.c
+++ b/nss/spwd-lookup.c
@@ -16,8 +16,14 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+#include <config.h>
+
#define DATABASE_NAME shadow
#define ALTERNATE_NAME passwd
-#define DEFAULT_CONFIG "compat [NOTFOUND=return] files"
+#ifdef LINK_OBSOLETE_NSL
+# define DEFAULT_CONFIG "compat [NOTFOUND=return] files"
+#else
+# define DEFAULT_CONFIG "files"
+#endif
#include "XXX-lookup.c"