Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | previous in thread | raw e-mail

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=10
>> >
>> > Change 182898 by hselasky@hselasky_laptop001 on 2010/08/25 16:49:00
>> >
>> >        LibUSB:
>> >                - patch for GNU/kFreeBSD by David Moles
>> >
>> >        PR:
>> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594330 Reviewed by:
>> >  hselasky @
>> >
>> > Affected files ...
>> >
>> > .. //depot/projects/usb/src/lib/libusb/libusb20.c#19 edit
>> >
>> > Differences ...
>> >
>> > ==== //depot/projects/usb/src/lib/libusb/libusb20.c#19 (text+ko) ====
>> >
>> > @@ -1182,7 +1182,7 @@
>> >  {
>> >        struct libusb20_backend *pbe;
>> >
>> > -#ifdef __FreeBSD__
>> > +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
>> >        pbe = libusb20_be_alloc(&libusb20_ugen20_backend);
>> >  #else
>> >        pbe = 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


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinNq_XKOfmZqAHc8xeRuS=g7hb5mqvrCb4QLWjE>