Subject: Re: bin/3539: Archive timestamps don't work on NetBSD/pmax
To: Chris G. Demetriou <cgd@cs.cmu.edu>
From: Ted Lemon <mellon@hoffman.vix.com>
List: netbsd-bugs
Date: 04/25/1997 15:10:55
> (1) that should be __mips__, because __mips shouldn't be defined by
> properly configured NetBSD compilers (in-tree or out).

I was going to say that it didn't define it, but I looked at it again
and it turns out that it does.   So you're right - it can test that
instead.   However, the NetBSD/pmax compiler currently does define
__mips.

> (2) if it applies to the mips, it probably applies to the alpha as
> well.  (Indeed, this looks like it would apply to the alpha.)

Almost certainly true.

> (3) it might be better to key on __ELF__, so that when building with
> and ELF toolchain (regardless of platform) the right thing happens.
> of course, that has its own set of problems.

There's no such predefine.   I suppose we could make there be one,
though.

Actually, I think for now the ifdef should read:

#if !defined(__svr4__) && !defined(__SVR4) && \
	!(defined (__NetBSD__) && (defined (__mips__) || defined (__alpha__)))

Does that work for you?

			       _MelloN_