diff options
author | Bruno Haible <bruno@clisp.org> | 2019-06-21 02:49:38 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-06-21 02:55:03 +0200 |
commit | 9e2d1943b8ae7b770a746a3bd406db5932977321 (patch) | |
tree | bf86ef1182103e3f8322dde849c0efa8d56edf3b | |
parent | e9d8b52d0d644cb23e5cbe94b94806ca3481c402 (diff) | |
download | gnulib-9e2d1943b8ae7b770a746a3bd406db5932977321.tar.gz gnulib-9e2d1943b8ae7b770a746a3bd406db5932977321.tar.bz2 |
windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
* lib/windows-thread.c: Include <errno.h>.
* lib/windows-tls.c: Likewise.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/windows-thread.c | 1 | ||||
-rw-r--r-- | lib/windows-tls.c | 2 |
3 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2019-06-20 Bruno Haible <bruno@clisp.org> + windows-thread, windows-tls: Fix compilation error on 32-bit mingw. + * lib/windows-thread.c: Include <errno.h>. + * lib/windows-tls.c: Likewise. + +2019-06-20 Bruno Haible <bruno@clisp.org> + tss tests: Small improvement. * tests/test-tss.c (test_tss): Pass a different id to each thread. diff --git a/lib/windows-thread.c b/lib/windows-thread.c index 01daa78a14..8bb8ad673f 100644 --- a/lib/windows-thread.c +++ b/lib/windows-thread.c @@ -22,6 +22,7 @@ /* Specification. */ #include "windows-thread.h" +#include <errno.h> #include <process.h> #include <stdlib.h> diff --git a/lib/windows-tls.c b/lib/windows-tls.c index 87aa454da7..0f1979e103 100644 --- a/lib/windows-tls.c +++ b/lib/windows-tls.c @@ -21,6 +21,8 @@ /* Specification. */ #include "windows-tls.h" +#include <errno.h> + int glwthread_tls_key_create (glwthread_tls_key_t *keyp, void (*destructor) (void *)) { |