Date: Thu, 2 May 1996 12:55:39 -0700 (PDT) From: Mike Pritchard <mpp> To: gibbs@freefall.freebsd.org (Justin T. Gibbs) Cc: smpatel@umiacs.umd.edu, phk@critter.tfs.com, freebsd-current@freefall.freebsd.org Subject: Re: LINUX COMPAT_LINUX Message-ID: <199605021955.MAA21094@freefall.freebsd.org> In-Reply-To: <199605021918.MAA17987@freefall.freebsd.org> from "Justin T. Gibbs" at May 2, 96 12:18:17 pm
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605021955.MAA21094>