From owner-freebsd-bugs Thu Mar 16 10:30:03 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA18743 for bugs-outgoing; Thu, 16 Mar 1995 10:30:03 -0800 Received: (from gnats@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA18731; Thu, 16 Mar 1995 10:30:02 -0800 Date: Thu, 16 Mar 1995 10:30:02 -0800 Message-Id: <199503161830.KAA18731@freefall.cdrom.com> From: Heikki Suonsivu Reply-To: Heikki Suonsivu To: freebsd-bugs Subject: gnu/246: Compiler doesn't define anything to determinate bsd 4.4 origin In-Reply-To: Your message of Thu, 16 Mar 1995 20:27:34 +0200 <199503161827.UAA25477@katiska.clinet.fi> Sender: bugs-owner@FreeBSD.org Precedence: bulk >Number: 246 >Category: gnu >Synopsis: Compiler doesn't define anything to determinate bsd 4.4 origin >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 16 10:30:01 1995 >Originator: Heikki Suonsivu >Organization: Helsinki University of Technology, Finland >Release: FreeBSD 2.1.0-Development i386 >Environment: Current (a week old) >Description: bsd or bsd4_4 or anything should be defined by C compiler. Currently there is nothing but unix, i386 and FreeBSD, which forces #ifdef FreeBSD clutter even when the program only needs generic BSD features, nothing specific to FreeBSD. gcc version 2.6.2 /usr/libexec/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=6 -Dunix -Di386 -D__FreeBSD__=2 -D__unix__ -D__i386__ -D__FreeBSD__=2 -D__unix -D__i386 -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386) /usr/users/hsu/hello.c /var/tmp/cc024742.i >How-To-Repeat: gcc -v existing-file.c >Fix: Add -D__bsd4_4__ and/or -Dbsd4_4 It should make its way into 2.1. >Audit-Trail: >Unformatted: