diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-05-18 15:11:46 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-18 15:11:46 -0700 |
commit | b153d2ae9206f752dd383c7bc30a5ab246ee5bcc (patch) | |
tree | 042610dd966e3eaaad3f7f61bd4ffd96e3004a16 /compat/win32 | |
parent | 1f66975deb8402131fbf7c14330d0c7cdebaeaa2 (diff) | |
parent | ed84387a6bfe271e9c1edd277bb6fad54c6a6f0b (diff) | |
download | git-b153d2ae9206f752dd383c7bc30a5ab246ee5bcc.tar.gz git-b153d2ae9206f752dd383c7bc30a5ab246ee5bcc.tar.xz |
Merge branch 'jk/push-client-deadlock-fix'
Some Windows SDK lacks pthread_sigmask() implementation and fails
to compile the recently updated "git push" codepath that uses it.
* jk/push-client-deadlock-fix:
Windows: only add a no-op pthread_sigmask() when needed
Windows: add pthread_sigmask() that does nothing
Diffstat (limited to 'compat/win32')
-rw-r--r-- | compat/win32/pthread.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compat/win32/pthread.h b/compat/win32/pthread.h index b6ed9e746..1c164088f 100644 --- a/compat/win32/pthread.h +++ b/compat/win32/pthread.h @@ -104,4 +104,11 @@ static inline void *pthread_getspecific(pthread_key_t key) return TlsGetValue(key); } +#ifndef __MINGW64_VERSION_MAJOR +static inline int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset) +{ + return 0; +} +#endif + #endif /* PTHREAD_H */ |