aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-03-28 10:16:17 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-03-28 10:16:17 -0300
commit885d3cda907d0dee54b13cbbf61b040c9951d5a2 (patch)
tree008ffbe68fb12ce3a94fa39f1e8dc02ea88f2f83 /malloc
parent868506eb427c9dcc6d869cd4885679be04e1b7dd (diff)
downloadglibc-885d3cda907d0dee54b13cbbf61b040c9951d5a2.tar
glibc-885d3cda907d0dee54b13cbbf61b040c9951d5a2.tar.gz
glibc-885d3cda907d0dee54b13cbbf61b040c9951d5a2.tar.bz2
glibc-885d3cda907d0dee54b13cbbf61b040c9951d5a2.zip
Allow building with --disable-nscd again
The change 88677348b4de breaks the build with undefiend references to the NSCD functions.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/set-freeres.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/malloc/set-freeres.c b/malloc/set-freeres.c
index f452ff838b..42d70d3971 100644
--- a/malloc/set-freeres.c
+++ b/malloc/set-freeres.c
@@ -37,11 +37,13 @@
# pragma weak __intl_freemem
# pragma weak __libio_freemem
# pragma weak __libc_fstab_freemem
+#ifdef USE_NSCD
# pragma weak __nscd_gr_map_freemem
# pragma weak __nscd_hst_map_freemem
# pragma weak __nscd_pw_map_freemem
# pragma weak __nscd_serv_map_freemem
# pragma weak __nscd_group_map_freemem
+#endif
# pragma weak __libc_regcomp_freemem
# pragma weak __libc_atfork_freemem
# pragma weak __res_thread_freeres
@@ -95,11 +97,15 @@ __libc_freeres (void)
call_function_static_weak (__intl_freemem);
call_function_static_weak (__libio_freemem);
call_function_static_weak (__libc_fstab_freemem);
+
+#ifdef USE_NSCD
call_function_static_weak (__nscd_gr_map_freemem);
call_function_static_weak (__nscd_hst_map_freemem);
call_function_static_weak (__nscd_pw_map_freemem);
call_function_static_weak (__nscd_serv_map_freemem);
call_function_static_weak (__nscd_group_map_freemem);
+#endif
+
call_function_static_weak (__libc_regcomp_freemem);
call_function_static_weak (__libc_atfork_freemem);
/* __res_thread_freeres deallocates the per-thread resolv_context);