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

Christian Franke Christian.Franke at t-online.de
Mon Sep 19 20:12:40 UTC 2011


Hi,

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).

-- 
Christian Franke

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cdrkit-union_wait.patch
Type: text/x-patch
Size: 518 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debburn-devel/attachments/20110919/c4077c39/attachment.bin>


More information about the Debburn-devel mailing list