[PATCH] Allow usage of union wait for wait() functions and macros

Christian Franke Christian.Franke@t-online.de
Wed Oct 5 10:58:00 GMT 2011

The file include/sys/wait.h provides union wait but neither the wait() 
functions nor the W*() macros allow to actually use it. Compilation of 
cdrkit 1.1.11 fails because the configure check assumes that union wait 
is the status parameter type if its declaration exists.

The attached patch fixes this. It uses GCC extensions for C and 
overloading for C++. Works also with the old Cygwin gcc-3.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwin-union_wait.patch
Type: text/x-diff
Size: 4445 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20111005/84940573/attachment.bin>

More information about the Cygwin-patches mailing list