From bea9b19322c77265033a068ac60c95a37e798a80 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 30 Jul 2012 16:09:11 -0700 Subject: Fix lots of bitrot for stub configurations. --- nss/nsswitch.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nss/nsswitch.c') diff --git a/nss/nsswitch.c b/nss/nsswitch.c index 464f478..a2628c7 100644 --- a/nss/nsswitch.c +++ b/nss/nsswitch.c @@ -415,7 +415,9 @@ __nss_lookup_function (service_user *ni, const char *fct_name) { /* The search found an existing structure in the tree. */ result = ((known_function *) *found)->fct_ptr; +#ifdef PTR_DEMANGLE PTR_DEMANGLE (result); +#endif } else { @@ -503,7 +505,9 @@ __nss_lookup_function (service_user *ni, const char *fct_name) /* Remember function pointer for later calls. Even if null, we record it so a second try needn't search the library again. */ known->fct_ptr = result; +#ifdef PTR_MANGLE PTR_MANGLE (known->fct_ptr); +#endif } } -- cgit v1.1