[Gc] RE: ucontext.h deprecation in MacOS 10.6 (was: Compiling gc
with gcc-4.2.1)
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Mon Aug 31 12:36:19 PDT 2009
Is the patch ok? Shouldn't it read
#ifdef NO_GETCONTEXT
# include <ucontext.h>
#endif
On Mon, Aug 31, 2009 at 8:57 PM, Boehm, Hans<hans.boehm at hp.com> wrote:
> 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.
>
> Hans
>
>> -----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
>>
>> Victor
>>
>>
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> https://www.hpl.hp.com/hosted/linux/mail-archives/gc/
>
--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
https://juanjose.garciaripoll.googlepages.com
More information about the Gc
mailing list