[Bug] __wait_status_to_int() is expected to be a macro

David Stacey drstacey@tiscali.co.uk
Fri Aug 24 14:38:00 GMT 2018


On 12/06/18 12:45, Eric Blake wrote:
> On 06/12/2018 03:48 AM, Corinna Vinschen wrote:
>> On Jun  8 12:43, Eric Blake wrote:
>>> On 06/08/2018 12:26 PM, Hans-Bernhard Bröker wrote:
>>>> Am 08.06.2018 um 17:16 schrieb Denis Nikiforov:
>>>>> /usr/include/boost/process/detail/posix/is_running.hpp:18:1: error:
>>>>> non-constant condition for static assertion
>>>>>    static_assert(!WIFEXITED(still_active), "Internal Error");
>>>>>    ^~~~~~~~~~~~~
>>>>>
>>>>> __wait_status_to_int must be a macros but it's redefined as a 
>>>>> function.
>>
>> But, assuming I'm completely off-track above and a macro is really
>> desired:
>>
>> Defining __wait_status_to_int as function is C++-specific.  I don't 
>> think
>> this is really required.  A quick test implies the C macro definition in
>> sys/wait.h is sufficent for C++ as well.
>
> Yes, I think you're right on that front. 

Apologies for reviving an old thread, but I ran into the same problem 
today. Is there any chance we could have a macro-only 
'__wait_status_to_int' in Cygwin 2.11.0, please?

Many thanks in advance,

Dave.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list