From: Bruno Haible Date: Fri, 5 Oct 2018 19:49:39 +0000 (+0200) Subject: explicit_bzero: Make it possible to namespace the defined symbol. X-Git-Tag: v1.0~5376 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a67bce28a13b2ceb8614bf374941580c8047a209;p=thirdparty%2Fgnulib.git explicit_bzero: Make it possible to namespace the defined symbol. * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of glibc. --- diff --git a/ChangeLog b/ChangeLog index fd631de1a0..4d2542b507 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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'. diff --git a/lib/explicit_bzero.c b/lib/explicit_bzero.c index 033176488f..124b3cc442 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. */