]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix build with --enable-static-nss [BZ #21088]
authorAlexey Neyman <stilor@att.net>
Wed, 25 Jan 2017 20:54:57 +0000 (12:54 -0800)
committerMike Frysinger <vapier@gentoo.org>
Wed, 15 Mar 2017 20:32:23 +0000 (13:32 -0700)
Signed-off-by: Alexey Neyman <stilor@att.net>
ChangeLog
nss/nsswitch.c

index 47faa520be29cba45ab0de1e7f730f760cb8d8bc..48d285f49c33cae3fdd51334a5625fc13fbd7872 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-03-15  Alexey Neyman  <stilor@att.net>
+
+       [BZ #21088]
+       * nss/nsswitch.c (nscd_init_cb, is_nscd): Make the #if check
+       around definitions match those around use.
+
 2017-03-15  Alexey Neyman  <stilor@att.net>
 
        * configure.ac: Avoid empty subexpression in grep.
index 0a65f6ad0c640ae144cbe9d7c2edf9d67e67a245..8f31658523b9a71b6b1e0119b5edfd9a0fd6e919 100644 (file)
@@ -94,7 +94,7 @@ static name_database *service_table;
 static name_database_entry *defconfig_entries;
 
 
-#ifdef USE_NSCD
+#if defined USE_NSCD && (!defined DO_STATIC_NSS || defined SHARED)
 /* Nonzero if this is the nscd process.  */
 static bool is_nscd;
 /* The callback passed to the init functions when nscd is used.  */