This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RDI on OpenBSD


> >  /* 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]