This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RDI on OpenBSD
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: dne at mayonnaise dot net (Daniel Néri)
- Cc: gdb-patches at sources dot redhat dot com, Richard dot Earnshaw at arm dot com
- Date: Thu, 04 Apr 2002 12:03:05 +0100
- Subject: Re: RDI on OpenBSD
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> > /* 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.