Steve Peters wrote: > On Wed, Jul 20, 2005 at 02:40:54PM +0300, Jarkko Hietaniemi wrote: > >>My (?:m(?:is)?)?adventures in the world of POSIX signals continue. >> >>Now to followup on my own patch of two years ago [1], here is support >>for SA_SIGINFO (see man sigaction), which allows additional information >>to be passed on to the signal handlers (beyond the signal number). >> >>I am not entirely proud of the argument passing scheme to the signal >>handler (the name of the signal, a hash ref with the POSIX/SUSv3 fields >>unpacked, and the binary blob of the whole siginfo struct) but I tried >>to find a solution somewhere between being a POSIX purist and a portable >>pragmatist. >> > > > Unfortunately, it looks like this patch causes some compile failures on > BSD-related systems, including Cygwin. The failure occue in mg.c with the > following error... > > mg.c: In function `Perl_sighandler': > mg.c:2720: error: union has no member named `_file' > *** Error code 1
GROAN. What was it that Andy Dougherty said about the fine portability of signal semantics...? :-) As a quick fix, I suggest just #if 0'ing the si_band store. I'll cook up a Configure patch to scan for the si_band (and maybe some other fields).