From owner-freebsd-hackers Mon Jan 19 10:22:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA01101 for hackers-outgoing; Mon, 19 Jan 1998 10:22:21 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from zippy.dyn.ml.org (garbanzo@libya-201.ppp.hooked.net [206.169.227.201]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA01083 for ; Mon, 19 Jan 1998 10:22:12 -0800 (PST) (envelope-from garbanzo@hooked.net) Received: from localhost (garbanzo@localhost) by zippy.dyn.ml.org (8.8.8/8.8.7) with SMTP id KAA00950; Mon, 19 Jan 1998 10:10:43 -0800 (PST) X-Authentication-Warning: zippy.dyn.ml.org: garbanzo owned process doing -bs Date: Mon, 19 Jan 1998 10:10:43 -0800 (PST) From: Alex X-Sender: garbanzo@zippy.dyn.ml.org To: daniel_sobral@voga.com.br cc: hackers@FreeBSD.ORG Subject: Re: Device Driver In-Reply-To: <83256591.00459E20.00@papagaio.voga.com.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk On Mon, 19 Jan 1998 daniel_sobral@voga.com.br wrote: > 1) It would be nice if the driver would compile both under 3.0 and 2.2. > Now, I realise this is not _really_ possible, because the define I have to > check does not depend on what you are compiling for, but on what the gcc > was compiled under. Now, if someone would tell me _what_ this define name, > I'd be really grateful. Again, if there is any driver in the 3.0 tree that > does this trick already (same driver under both 3.0 and 2.2), would someone > kindly indicate it to me? What about including osreldate.h? It does depend on the include files being installed, but other than that, that's not necesarily compiler dependant. It only assumes that you're not cross compiling. Realistically however, two seperate versions are probably the most bulletproof idea. El hombre mas brillante dijo una vez "Cuidado hay NT". (it's a nerd thing) - alex