From: Greg Funni Date: Thu, 20 Nov 2025 21:43:36 +0000 (+0000) Subject: win32: pthread_cond_init should return a value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42aa7603aa752850c8ad89cca61e280dab520faf;p=thirdparty%2Fgit.git win32: pthread_cond_init should return a value This value is not checked, but it must return to match POSIX Signed-off-by: Greg Funni Signed-off-by: Junio C Hamano --- diff --git a/compat/win32/pthread.h b/compat/win32/pthread.h index e2b5c4f64c..000604cdf6 100644 --- a/compat/win32/pthread.h +++ b/compat/win32/pthread.h @@ -34,7 +34,7 @@ typedef int pthread_mutexattr_t; #define pthread_cond_t CONDITION_VARIABLE -#define pthread_cond_init(a,b) InitializeConditionVariable((a)) +#define pthread_cond_init(a,b) return_0((InitializeConditionVariable((a)), 0)) #define pthread_cond_destroy(a) do {} while (0) #define pthread_cond_wait(a,b) return_0(SleepConditionVariableCS((a), (b), INFINITE)) #define pthread_cond_signal WakeConditionVariable