~ubuntu-branches/ubuntu/saucy/freebsd-libs/saucy

« back to all changes in this revision

Viewing changes to debian/patches/12_usb.diff

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2010-08-26 00:29:47 UTC
  • Revision ID: james.westby@ubuntu.com-20100826002947-yqnam1io138w382r
Tags: 8.1-5
libusb2: fix USB devices detection. Closes: bug#594330.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
 MLINKS+=       libusb.3 usb.3
23
23
 
 
24
--- a/lib/libusb/libusb20.c
 
25
+++ b/lib/libusb/libusb20.c
 
26
@@ -1166,7 +1166,7 @@ libusb20_be_alloc_ugen20(void)
 
27
 {
 
28
        struct libusb20_backend *pbe;
 
29
 
 
30
-#ifdef __FreeBSD__
 
31
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 
32
        pbe = libusb20_be_alloc(&libusb20_ugen20_backend);
 
33
 #else
 
34
        pbe = NULL;