Subject: Re: port-alpha/5586: port alpha does not define "unix"
To: None <netbsd-bugs@NetBSD.ORG,>
From: Greg A. Woods <>
List: netbsd-bugs
Date: 06/14/1998 21:16:42
[ On Sun, June 14, 1998 at 17:25:37 (-0700), Tim Rightnour wrote: ]
> Subject: Re:  port-alpha/5586: port alpha does not define "unix"
> On 14-Jun-98 Chris Demetriou spoke unto us all:
> # No, that define needs to be _removed_ from other ports' definitions.
> # 
> # The NetBSD 'standard' CPP predefines are __NetBSD__, __${MACHINE_ARCH}__
> # (where that's expanded as appropriate for the architecture), and
> # _that's it_.  That is all that ports' compilers should define by default.
> # 
> I guess I don't understand why we don't define "unix".

Me neither.

> Alot of third party
> stuff relies on the fact that most unix or unix-like machines define that
> automaticly.

Indeed, lots of software *does* rely on it, and it can often be used
very effectively.  Although the use of "unix" isn't specified in POSIX
or The Single UNIX Specification (to the best of my knowledge), neither
do any standards preclude its use (again, to the best of my knowledge).

It's been around a *long* time, and I've never heard a really good
reason why it *must* go away (lots of inconsequential excuses, but no
solid reasons).

							Greg A. Woods

+1 416 443-1734      VE3TCP      <>      <robohack!woods>
Planix, Inc. <>; Secrets of the Weird <>