diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-03-04 16:27:10 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-03-04 16:27:10 +0100 |
commit | cdbc2f9d274a23bcf6cb03046b1e5b4bdcedafb1 (patch) | |
tree | aef3f6a300ddbfe0a55364f0dc310e27a391dbdc /nt | |
parent | 345c4c6532d3784eed5acbaea8a78ce3aad071e4 (diff) | |
download | emacs-cdbc2f9d274a23bcf6cb03046b1e5b4bdcedafb1.tar.gz |
Add some sleeps to gnutls_try_handshake
* admin/merge-gnulib (GNULIB_MODULES): Add the nanosleep module.
* m4/gnulib-comp.m4 (gl_EARLY):
* lib/gnulib.mk.in: Automatic update.
* m4/nanosleep.m4:
* lib/nanosleep.c: New module.
* nt/mingw-cfg.site (gl_cv_func_free_preserves_errno):
* nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_nanosleep): Omit nanosleep,
since mingw has it.
* src/gnutls.c (gnutls_try_handshake): Add some sleeping to the
busy-wait loop so that we don't use 100% CPU here (bug#32452).
Diffstat (limited to 'nt')
-rw-r--r-- | nt/gnulib-cfg.mk | 1 | ||||
-rw-r--r-- | nt/mingw-cfg.site | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/nt/gnulib-cfg.mk b/nt/gnulib-cfg.mk index 4748474f1dc..69119b135e2 100644 --- a/nt/gnulib-cfg.mk +++ b/nt/gnulib-cfg.mk @@ -74,3 +74,4 @@ OMIT_GNULIB_MODULE_futimens = true OMIT_GNULIB_MODULE_utimensat = true OMIT_GNULIB_MODULE_file-has-acl = true OMIT_GNULIB_MODULE_nproc = true +OMIT_GNULIB_MODULE_nanosleep = true diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site index 6ab81e943f1..7ca19cbad06 100644 --- a/nt/mingw-cfg.site +++ b/nt/mingw-cfg.site @@ -167,3 +167,6 @@ ac_cv_func_strsignal=no # implementation of 'free' doesn't touch errno, and it emits a # compilation warning. gl_cv_func_free_preserves_errno=yes +# Don't build the Gnulib nanosleep module: it requires W2K or later, +# and MinGW does have nanosleep. +gl_cv_func_nanosleep=yes |