NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD macros

On Fri, Dec 11, 2009 at 04:44:29PM +0000, Matthias Scheler wrote:
> On Fri, Dec 11, 2009 at 03:41:44PM +0000, Julian Coleman wrote:
> > This tells you that __NetBSD__ is defined (on a NetBSD system).  There are
> > also version values in /usr/include/sys/param.h.  I don't know if there is
> > a define that will tell you what the current OS name is.
> I don't think it is a particular good idea to try to figure out the
> operation system version from "sys/param.h".

What else can you do, in the source to a C program?  Please don't say
"use autoconf, spend minutes of run time, and write a value from uname's
output into a private header file" -- the values are in param.h so you
*don't* have to do horrible things like that.


Home | Main Index | Thread Index | Old Index