Date: Wed, 25 Aug 2010 14:15:32 -0700 From: Garrett Cooper <gcooper@FreeBSD.org> To: Hans Petter Selasky <hselasky@freebsd.org> Cc: Perforce Change Reviews <perforce@freebsd.org> Subject: Re: PERFORCE change 182898 for review Message-ID: <AANLkTinNq_XKOfmZqAHc8xeRuS=g7hb5mqvrCb4QLWjE@mail.gmail.com> In-Reply-To: <201008252114.05428.hselasky@freebsd.org> References: <201008251649.o7PGnD8q074706@skunkworks.freebsd.org> <AANLkTi=Kc3QN3Nfk4fEj4RPqPFv6KbWtN2YYj9V1%2B5ck@mail.gmail.com> <201008252114.05428.hselasky@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 25, 2010 at 12:14 PM, Hans Petter Selasky <hselasky@freebsd.org> wrote: > On Wednesday 25 August 2010 20:21:25 Garrett Cooper wrote: >> On Wed, Aug 25, 2010 at 9:49 AM, Hans Petter Selasky >> >> <hselasky@freebsd.org> wrote: >> > http://p4web.freebsd.org/@@182898?ac=3D10 >> > >> > Change 182898 by hselasky@hselasky_laptop001 on 2010/08/25 16:49:00 >> > >> > =A0 =A0 =A0 =A0LibUSB: >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0- patch for GNU/kFreeBSD by David Moles >> > >> > =A0 =A0 =A0 =A0PR: >> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D594330 Reviewed by: >> > =A0hselasky @ >> > >> > Affected files ... >> > >> > .. //depot/projects/usb/src/lib/libusb/libusb20.c#19 edit >> > >> > Differences ... >> > >> > =3D=3D=3D=3D //depot/projects/usb/src/lib/libusb/libusb20.c#19 (text+k= o) =3D=3D=3D=3D >> > >> > @@ -1182,7 +1182,7 @@ >> > =A0{ >> > =A0 =A0 =A0 =A0struct libusb20_backend *pbe; >> > >> > -#ifdef __FreeBSD__ >> > +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) >> > =A0 =A0 =A0 =A0pbe =3D libusb20_be_alloc(&libusb20_ugen20_backend); >> > =A0#else >> > =A0 =A0 =A0 =A0pbe =3D NULL; >> >> Crazy question... if GNU/kFreeBSD is going to be rebranding the kernel >> as __FreeBSD_kernel__, what about the rest of the references that are >> guarded by __FreeBSD__ ? >> Thanks, >> -Garrett > > This check is not for checking if we are compiling in the kernel or not. = It is > only to check if we have a FreeBSD system kernel or not when compiling in > userspace. Fortunately LibUSB only has one of these checks. > > Was that your question? That answered my question I suppose. It's just kind of interesting how things are relatively mix and match with the GNU/*BSD hybrid OSes out there. Thanks! -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinNq_XKOfmZqAHc8xeRuS=g7hb5mqvrCb4QLWjE>