]> Savannah Git Hosting - gnulib.git/commit
explicit_bzero: Use memset_s() when available.
authorBastien Roucariès <rouca@debian.org>
Sun, 12 Apr 2020 23:09:14 +0000 (01:09 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Apr 2020 22:05:09 +0000 (00:05 +0200)
commit818572b398a9454e0edc1bb7f7135fc6af244694
tree052a4541078a6979fda31038eb4a4a3c2055690e
parent6624b766b2871c9e5ecf6400dd56cb5e5c441558
explicit_bzero: Use memset_s() when available.

Some OS define memset_s instead of explicit_bzero. Use it.

* lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
(explicit_bzero): Use memset_s when available.
* m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.

Signed-off-by: Bastien Roucariès <rouca@debian.org>
ChangeLog
lib/explicit_bzero.c
m4/explicit_bzero.m4