Building a testdir for module 'pthread-rwlock' on mingw, I see a
compilation error:
../../gllib/pthread-cond.c:25:29: fatal error: windows-thread.h: No such file
or directory
# include "windows-thread.h"
^
compilation terminated.
make[4]: *** [Makefile:2144: pthread-cond.o] Error 1
This patch fixes it.
2024-07-06 Bruno Haible <[email protected]>
pthread-cond: Fix compilation error on native Windows.
* lib/pthread-cond.c: Include windows-cond.h, not windows-thread.h.
diff --git a/lib/pthread-cond.c b/lib/pthread-cond.c
index 380cdfd357..ca22e0373b 100644
--- a/lib/pthread-cond.c
+++ b/lib/pthread-cond.c
@@ -22,7 +22,7 @@
#include <pthread.h>
#if (defined _WIN32 && ! defined __CYGWIN__) && USE_WINDOWS_THREADS
-# include "windows-thread.h"
+# include "windows-cond.h"
#else
# include <errno.h>
# include <limits.h>