summaryrefslogtreecommitdiff
path: root/nt
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2020-04-19 19:38:53 +0300
committerEli Zaretskii <eliz@gnu.org>2020-04-19 19:38:53 +0300
commit3f8b771da96f9a55dd5ed322104135a0c2c6f2e4 (patch)
tree6362a2a1f4bc07411560a517a1557af77c8b4f75 /nt
parent65990f47ccd6f1a3558910d71701a6f029c35433 (diff)
downloademacs-3f8b771da96f9a55dd5ed322104135a0c2c6f2e4.tar.gz
Don't use Gnulib's explicit_bzero on MS-Windows
This is a preventive change, since Gnulib was recently changed its explicit_bzero to call SecureZeroMemory on MS-Windows, disregarding systems older than XP, which didn't have it. * src/w32.c (explicit_bzero): New function. * nt/mingw-cfg.site (ac_cv_func_explicit_bzero): Avoid using the Gnulib replacement for explicit_bzero. * nt/inc/ms-w32.h (explicit_bzero): Add prototype.
Diffstat (limited to 'nt')
-rw-r--r--nt/inc/ms-w32.h1
-rw-r--r--nt/mingw-cfg.site1
2 files changed, 2 insertions, 0 deletions
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index 1cce2c3062f..cbe35ea1053 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -440,6 +440,7 @@ extern int alarm (int);
extern int sys_kill (pid_t, int);
+extern void explicit_bzero (void *, size_t);
/* For integration with MSDOS support. */
#define getdisk() (_getdrive () - 1)
diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site
index 2271eef98d6..2e898c745e5 100644
--- a/nt/mingw-cfg.site
+++ b/nt/mingw-cfg.site
@@ -109,6 +109,7 @@ ac_cv_func_futimens=not-needed
gl_cv_func_futimens_works="not-needed-so-yes"
ac_cv_func_utimensat=yes
gl_cv_func_utimensat_works=yes
+ac_cv_func_explicit_bzero=yes
# Aliased to _commit in ms-w32.h
ac_cv_func_fsync=yes
ac_cv_func_fdatasync=yes