[glibc] nss: Remove <gnu/lib-names.h> include from nsswitch.c
Adhemerval Zanella via Glibc-cvs <[email protected]> Mon, 15 Jun 2026 17:42:08 +0000 (GMT)
| Newsgroups | gmane.comp.lib.glibc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=21694014388ad278aa03241800d1f0c0a7127ad1 commit 21694014388ad278aa03241800d1f0c0a7127ad1 Author: Michael Ford <[email protected]> Date: Thu Jun 11 15:58:04 2026 +0200 nss: Remove <gnu/lib-names.h> include from nsswitch.c nsswitch.c no longer references any of the *_SO macros provided by <gnu/lib-names.h>. The only consumer, __nss_shlib_revision, moved to nss_module.c as part of the NSS reorganization in glibc 2.33 (and nss_module.c includes the header unconditionally), but the guarded include was left behind. Signed-off-by: Michael Ford <[email protected]> Reviewed-by: Adhemerval Zanella <[email protected]> Diff: --- nss/nsswitch.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nss/nsswitch.c b/nss/nsswitch.c index 97cedff826..2640c027d0 100644 --- a/nss/nsswitch.c +++ b/nss/nsswitch.c @@ -33,10 +33,6 @@ #include <shadow.h> #include <unistd.h> -#if !defined DO_STATIC_NSS || defined SHARED -# include <gnu/lib-names.h> -#endif - #include "nsswitch.h" #include "../nscd/nscd_proto.h" #include <sysdep.h>