>From a67bce28a13b2ceb8614bf374941580c8047a209 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 Oct 2018 21:49:39 +0200 Subject: [PATCH 1/5] explicit_bzero: Make it possible to namespace the defined symbol. * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of glibc. --- ChangeLog | 6 ++++++ lib/explicit_bzero.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fd631de..4d2542b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2018-10-05 Bruno Haible + explicit_bzero: Make it possible to namespace the defined symbol. + * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of + glibc. + +2018-10-05 Bruno Haible + mkdir-p: Depend on 'mkdir'. * modules/mkdir-p (Depends-on): Add 'mkdir'. diff --git a/lib/explicit_bzero.c b/lib/explicit_bzero.c index 0331764..124b3cc 100644 --- a/lib/explicit_bzero.c +++ b/lib/explicit_bzero.c @@ -27,9 +27,11 @@ #include +#if _LIBC /* glibc-internal users use __explicit_bzero_chk, and explicit_bzero redirects to that. */ -#undef explicit_bzero +# undef explicit_bzero +#endif /* Set LEN bytes of S to 0. The compiler will not delete a call to this function, even if S is dead after the call. */ -- 2.7.4