From owner-freebsd-current Mon Oct 6 04:40:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA22519 for current-outgoing; Mon, 6 Oct 1997 04:40:04 -0700 (PDT) (envelope-from owner-freebsd-current) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id EAA22434 for ; Mon, 6 Oct 1997 04:39:45 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id LAA05174; Mon, 6 Oct 1997 11:15:01 +0100 From: Luigi Rizzo Message-Id: <199710061015.LAA05174@labinfo.iet.unipi.it> Subject: Re: how to detect different kernel code (select or poll) To: gurney_j@resnet.uoregon.edu Date: Mon, 6 Oct 1997 11:15:01 +0100 (MET) Cc: freebsd-current@FreeBSD.ORG In-Reply-To: <19971006040114.07437@hydrogen.nike.efn.org> from "John-Mark Gurney" at Oct 6, 97 04:00:55 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > what is the best way to conditionally compile code depending if select > or poll is in the kernel? > > the problem is that Luigi does he coding on a 2.2.x box.. and my test > machine is a -current box... what is the best way to get both select > and poll code into his sound code? I want to clarify that it's not a problem only the two of us are having... basically all kernel extensions which do not find their place in the official source distributions need to distinguish between the various branches, be them 2.1, 2.2.X 3.0 ... __FreeBSD__ evaluates as 2 on my system (2.2), maybe that's enough for 2.2 - 3 differentiation, but not for other cases. Cheers Luigi