*BSD News Article 41682


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!serval.net.wsu.edu!netnews.nwnet.net!oracle.pnl.gov!osi-east2.es.net!lll-winken.llnl.gov!trib.apple.com!olivea!grapevine.lcs.mit.edu!ginger.lcs.mit.edu!wollman
From: wollman@ginger.lcs.mit.edu (Garrett A. Wollman)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: FreeBSD porting questions.
Date: 25 Jan 1995 18:14:20 GMT
Organization: MIT Laboratory for Computer Science
Lines: 16
Message-ID: <3g64ds$bak@GRAPEVINE.LCS.MIT.EDU>
References: <3fh7id$an3@mars.mcs.com>
NNTP-Posting-Host: ginger.lcs.mit.edu

In article <3fh7id$an3@mars.mcs.com>,
Christopher Hilton <chilton@MCS.COM> wrote:
>     What's the #define symbol that the FreeBSD c compiler includes for 
>environment detections and what is it defined to? Is it __FreeBSD__ and is 
>defined to the version of the operating system?

The example program in /usr/share/examples/FreeBSD_version should tell
you everything you need to know.

-GAWollman

-- 
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
Opinions not those of| It is a bond more powerful than absence.  We like people
MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant