[Debburn-devel] [PATCH] Fix union wait configure check for Cygwin
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:
The cdrkit-union_wait.patch will no longer be needed for future Cygwin
releases, but might be useful for other platforms.
More information about the Debburn-devel