From: | "Alexis Ballier (aballier)" <aballier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-libs/libmtp/files: libmtp-1.1.6-fbsdlibusb.patch |
Date: | Tue, 27 Aug 2013 21:38:01 |
Message-Id: | 20130827213754.44B032004E@flycatcher.gentoo.org |
1 | aballier 13/08/27 21:37:54 |
2 | |
3 | Added: libmtp-1.1.6-fbsdlibusb.patch |
4 | Log: |
5 | Add a patch to make it build with FreeBSD libusb 1.0 implementation. |
6 | |
7 | (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 160F534A) |
8 | |
9 | Revision Changes Path |
10 | 1.1 media-libs/libmtp/files/libmtp-1.1.6-fbsdlibusb.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libmtp/files/libmtp-1.1.6-fbsdlibusb.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libmtp/files/libmtp-1.1.6-fbsdlibusb.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: libmtp-1.1.6-fbsdlibusb.patch |
16 | =================================================================== |
17 | FreeBSD installs its libusb-1.0 implementation in libusb-1.0. libmtp uses |
18 | pkg-config to discover it which adds the correct -I flag, so just #include |
19 | libusb.h to make it work with every implementation. |
20 | |
21 | Index: libmtp-1.1.6/src/libusb-glue.h |
22 | =================================================================== |
23 | --- libmtp-1.1.6.orig/src/libusb-glue.h |
24 | +++ libmtp-1.1.6/src/libusb-glue.h |
25 | @@ -32,7 +32,7 @@ |
26 | |
27 | #include "ptp.h" |
28 | #ifdef HAVE_LIBUSB1 |
29 | -#include <libusb-1.0/libusb.h> |
30 | +#include <libusb.h> |
31 | #endif |
32 | #ifdef HAVE_LIBUSB0 |
33 | #include <usb.h> |