On 01/04/2018 10:43 AM, Bruno Haible wrote: > Tim Rühsen wrote: >>> It looks like there is a definition >>> #define pthread_sigmask(how,newmask,oldmask) 0 >>> somewhere. Gnulib does not contain such a definition of pthread_sigmask. >>> Therefore I guess that it comes from the mingw header files. How does >>> the definition/declaration of pthread_sigmask look like, in the mingw header >>> files? >> >> Content of /usr/share/mingw-w64/include/pthread_signal.h: >> >> #ifndef WIN_PTHREADS_SIGNAL_H >> #define WIN_PTHREADS_SIGNAL_H >> >> /* Windows has rudimentary signals support. */ >> #define pthread_sigmask(H, S1, S2) 0 >> >> #endif /* WIN_PTHREADS_SIGNAL_H */ > > Thanks, it's clear now. > > This patch is similar to how we treat similar situations for 'dirfd' and > 'strdup'.
Thanks Bruno, sorry, but now the build hangs at In file included from /usr/share/mingw-w64/include/signal.h:10:0, from ./signal.h:52, from pthread_sigmask.c:20: pthread_sigmask.c:34:1: error: expected identifier or '(' before numeric constant pthread_sigmask (int how, const sigset_t *new_mask, sigset_t *old_mask) Regards, Tim
signature.asc
Description: OpenPGP digital signature