Problem with: Re: [PATCH] Allow usage of union wait for wait() functions and macros

Christian Franke Christian.Franke@t-online.de
Thu Dec 8 17:02:00 GMT 2011


Christopher Faylor wrote:
> On Thu, Dec 08, 2011 at 07:42:48AM +0100, Christian Franke wrote:
>> Fix:
>> #ifdef __cplusplus
>> +extern "C++" {
>> ...
>> inline int __wait_status_to_int(int __status) { .... }
>> inline int __wait_status_to_int(const union wait&__status) { .... }
>> ...
>> +}
>> #endif
> I've added that to sys/wait.h.  Thanks.

Unfortunately sys/wait.h 1.6 is incomplete. The extern "C++" block 
should include all overloaded C++ functions. Otherwise g++ issues 
similar errors for the wait*() functions as seen in the original message.

Christian



More information about the Cygwin-patches mailing list