[haiku-gsoc] Re: SDL build error: signal.h

  • From: scottmc <scottmc2@xxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Fri, 17 Jun 2011 15:59:01 -0700

On Fri, Jun 17, 2011 at 2:39 PM, Nathan Heisey <nathanheisey@xxxxxxxxx> wrote:
> Hello,
> I tried to build SDL 1.3 and got an error where struct sigaction did not
> have member sa_sigaction.  According to the specification found here, this
> is standard functionality, or something.  Is there some version of signal.h
> that has this functionality which I may use?  What can be done about this
> error?
> Thanks,
> -Nathan Heisey

Oh.  I used sed to patch that on sdl-1.2-hg but didn't add it to the
libsdl-1.3-hg.bep file.  I did it this way so it'd be easy to remove
once Ingo's signal branch got merged in, but that didn't get merged
into the alpha3 branch.  So you can either update to trunk, or run
this:

sed -i 's/#define HAVE_SIGACTION 1/#undef HAVE_SIGACTION/' include/SDL_config.h
or add that line into the libsdl-1.3-hg.bep in the same place as it is
in the libsdl-1.2-hg.bep file.

-scottmc

Other related posts: