bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help needed (MinGW)


From: Tim Rühsen
Subject: Re: Help needed (MinGW)
Date: Thu, 4 Jan 2018 10:57:14 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]