[Gc] RE: ucontext.h deprecation in MacOS 10.6 (was: Compiling
gc with gcc-4.2.1)
hans.boehm at hp.com
Mon Aug 31 15:15:18 PDT 2009
> From: Juan Jose Garcia-Ripoll
> Sent: Monday, August 31, 2009 12:52 PM
> On Mon, Aug 31, 2009 at 9:42 PM, Henning
> Makholm<makholm at octoshape.com> wrote:
> >> Is the patch ok? Shouldn't it read
> >> #ifdef NO_GETCONTEXT
> >> # include <ucontext.h>
> >> #endif
> > No, that wouldn't make sense. <ucontext.h> is the header
> that defines
> > getcontext() -- if you have NO GETCONTEXT, the header
> probably won't
> > even exist and therefore you should only include it if
> *not* NO_GETCONTEXT.
> I am just having problems with the previous patch and v7.1 of
> the garbage collector, because ucontext.h is still getting included.
Could you clarify? This is on MacOS 10.6?
The idea behind the patch is that DARWIN and UNIX_LIKE should be defined, which should cause NO_GETCONTEXT to get defined, which should avoid inclusion of ucontext.h using the include in the patch. Is this wrong? Is it getting included from elsewhere?
More information about the Gc