[Gc] RE: ucontext.h deprecation in MacOS 10.6 (was: Compiling gc
hans.boehm at hp.com
Mon Aug 31 11:57:51 PDT 2009
I've attached a patch you can try. This was not tested on MacOS, but I did test on IA64 and ARM Linux. It has the advantage of not complicating the code with any more MacOS specifics.
> -----Original Message-----
> From: Victor Ivrii [mailto:ivrii at math.toronto.edu]
> Sent: Monday, August 31, 2009 11:16 AM
> To: Boehm, Hans
> Subject: Re: uncontext.h deprecation in MacOS 10.6 (was:
> Compiling gc with gcc-4.2.1)
> On Mon, Aug 31, 2009 at 05:48:45PM +0000, Boehm, Hans wrote:
> > [Adding gc.linux.hpl.hp.com]
> > Actually, NO_GETCONTEXT should already be defined for
> DARWIN (mach_dep.c:169).
> > You are right that the real problem seems to be the
> inclusion of ucontext.h by mach_dep.c. I would try including
> that only if NO_GETCONTEXT is not defined. Including
> sys/ucontext.h instead might work if that doesn't, but that
> strikes me as a very MacOS-specific hack.
> > A tested patch from someone with a Snow Leopard
> installation would be great.
> It was not me who actually observed it and found solution (I
> observed it later) I can test the patch but writing it is a
> bit above my head.
> Including sys/ucontext.h works - I can confirm this
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1059 bytes
Url : http://napali.hpl.hp.com/pipermail/gc/attachments/20090831/f663a48f/mach_dep.c.obj
More information about the Gc