[m-dev.] trivial diff: Minor fix for FreeBSD

Andrew Bromage bromage at cs.mu.OZ.AU
Tue Jul 28 11:01:02 AEST 1998


G'day all.

Fergus Henderson wrote:

> > +/*
> > +** stdio.h must be included _after_ mercury_context.h because of an
> > +** incompatibility with FreeBSD (2.2.x).  FreeBSD defines an inline
> > +** function in stdio.h, so it cannot be included until after global
> > +** registers have been declared, otherwise GCC complains.
> > +*/
> > +#include <stdio.h>
> > +#include <unistd.h>            /* for getpid() and fork() */
> 
> I don't understand -- mercury_imp.h has already been included before
> <stdio.h> and <unistd.h>, so the global registers should already have
> been declared.

My mistake.  This is the change which had to happen for Mercury 0.7.3
to compile, not mercury-DEV.  I've backed out the change.

Cheers,
Andrew Bromage



More information about the developers mailing list