[Debburn-devel] [PATCH] Fix union wait configure check for Cygwin

Christian Franke Christian.Franke at t-online.de
Fri Oct 7 11:07:33 UTC 2011


Christian Franke wrote:
> cdrkit-1.11.1 compilation on Cygwin fails in 
> librols/spawn.c:wait_chld(). The code in include/waitdefs.h assumes 
> that an existing 'union wait' implies that the WEXITSTATUS, ... macros 
> accept a variable of this type as parameter. Cygwin's wait.h defines 
> 'union wait', but uses POSIX 'wait(int *)' and 'WEXITSTATUS(int)'.
>
> The attached patch enhances the configure check. Platforms with 
> 'wait(union wait *)' and 'WEXITSTATUS(union wait)' should still be 
> supported (not actually tested).
>

Meantime I fixed this in Cygwin's wait.h include files:
http://cygwin.com/ml/cygwin-patches/2011-q4/msg00000.html

The cdrkit-union_wait.patch will no longer be needed for future Cygwin 
releases, but might be useful for other platforms.

-- 
Christian Franke




More information about the Debburn-devel mailing list