William M. Perry wrote:
> Clearly it isn't portable (the sigcontext structure is
> processor-specific), but then I'm not sure that there is any portable
> method. Stevens[1] indicates that SA_SIGINFO and struct siginfo are
> specific to SVR4, and that BSD 4.3+ signal handlers have the
> prototype:
And evidently libc specific. This fails to compile on a libc5 system
(redhat 4.x + various weird crap) :)
Right. Replacing
#include <sigcontext.h>
with
#include <asm/sigcontext.h>
allows it to compile for libc-5 (for me, anyhow).
--
Glynn Clements <glynn(a)sensei.co.uk>