Re: RDI on OpenBSD

Richard Earnshaw
2002-04-04T11:03:43Z

> > /* A temporary sop to older compilers */
> > -#if defined (__NetBSD__) || defined (unix)
> > +#if defined (__unix__) || defined (unix)
> > # ifndef __unix /* (good for long-term portability?) */
> >
> > This is wrong. NetBSD doesn't define "__unix__" or "unix". Hence the
> > original test.
>
> Ok, forget that. The compiler defines "unix" (and hence, "__unix__"), so
> that isn't a problem.

Hmm, this is getting silly :-)

It turns out that I was more right the first time, than the second.

Some NetBSD platforms (in particular, those that are ELF) do not define
either "unix" or "__unix__". So we really do need that test for
__NetBSD__ there.

R.