From owner-freebsd-current Thu May 2 12:55:42 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA21101 for current-outgoing; Thu, 2 May 1996 12:55:42 -0700 (PDT) Received: (from mpp@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA21094 Thu, 2 May 1996 12:55:40 -0700 (PDT) From: Mike Pritchard Message-Id: <199605021955.MAA21094@freefall.freebsd.org> Subject: Re: LINUX COMPAT_LINUX To: gibbs@freefall.freebsd.org (Justin T. Gibbs) Date: Thu, 2 May 1996 12:55:39 -0700 (PDT) Cc: smpatel@umiacs.umd.edu, phk@critter.tfs.com, freebsd-current@freefall.freebsd.org In-Reply-To: <199605021918.MAA17987@freefall.freebsd.org> from "Justin T. Gibbs" at May 2, 96 12:18:17 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Justin T. Gibbs wrote: > > >On Thu, 2 May 1996, Poul-Henning Kamp wrote: > > > >> I'ts renamed to COMPAT_LINUX, which I'm told is also bad, but at least > >> it doesn't break the compile of the kernel. > >> > >> It may change name again if COMPAT_LINUX is too bad for compatibility... > > > >COMPAT_LINUX is also what NetBSD uses. Let's keep it this way, so that we > >are a little bit more standard. > > I believe that the Linux gcc defines "linux" not "LINUX", so any code > in our tree that is supposed to have conditional code for Linux should > use the lowercase define. The only place I know of that uses this > right now is the sequencer code for the aic7xxx driver. This may be true, but often second/third/whatever party makefiles/software will do something like: Makefile: CFLAGS = -DLINUX # define this if we are compiling on a Linux system foo.c: #ifdef LINUX /* whatever */ #endif -- Mike Pritchard mpp@FreeBSD.org "Go that way. Really fast. If something gets in your way, turn"