nss: Reconcile conditional declaration and use of `is_nscd'
authorArjun Shankar <arjun@redhat.com>
Thu, 11 May 2023 12:54:11 +0000 (14:54 +0200)
committerArjun Shankar <arjun@redhat.com>
Tue, 16 May 2023 09:40:10 +0000 (11:40 +0200)
commitbea1a4a77305cef90dac47b873bd9f01a6409c22
tree29014ffcf6761eecff4234300bc9d5353fac59d7
parenteeef96f56ce399f2c3fc1d93c0ba1dde34f3ae41
nss: Reconcile conditional declaration and use of `is_nscd'

This change harmonizes the declaration and use of `is_nscd' and fixes a
build failure with the "--enable-static-nss --enable-nscd"
configuration options due to `is_nscd' being used undeclared.

The purpose of `is_nscd' is to avoid (nss <-> nscd) recursion in
dynamically linked libc (SHARED) that is nscd-aware (USE_NSCD), and so
its declaration and use should be guarded by the definition of those
macros.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
nss/nss_module.c