Emacs master fails to build in MinGW-W64 (MSYS2).
#define pthread_sigmask(H, S1, S2) 0
The result:
gcc -c -mtune=generic -DUSE_CRT_DLL=1 -I /c/projects/emacs/nt/inc -mtune=generic -MMD -MF deps/pthread_sigmask.d -MP -fno-common -O2 -I. -I../src -I. -I./../src pthread_sigmask.c
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/signal.h:10,
from pthread_sigmask.c:20:
pthread_sigmask.c:34:1: error: expected identifier or '(' before numeric constant
34 | pthread_sigmask (int how, const sigset_t *new_mask, sigset_t *old_mask)
| ^~~~~~~~~~~~~~~