diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-04-06 17:36:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-10 18:10:27 +0100 |
commit | f2d82a136bfe85e893e4c2b7b5922a4d823812c1 (patch) | |
tree | 1a201b08ad5d8c1145c9a6d7d0676332baa77407 /meta/recipes-support/libusb | |
parent | 472eaf13893ec35a634db54314167c303996f716 (diff) | |
download | poky-f2d82a136bfe85e893e4c2b7b5922a4d823812c1.tar.gz |
libusb-compat: Include sys/types.h in usb.h
Fixes compile errors when usb.h is included in
other packages, it expects sys/types.h to be
there, instead it should include it itself
Change-Id: Ib49477b7d3f3cd97d65c9578bdc33f2ee33f5a26
(From OE-Core rev: 577b5c6ce6753b9ae3587da47caf6ecfac358668)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libusb')
-rw-r--r-- | meta/recipes-support/libusb/libusb-compat/0001-usb.h-Include-sys-types.h.patch | 30 | ||||
-rw-r--r-- | meta/recipes-support/libusb/libusb-compat_0.1.5.bb | 4 |
2 files changed, 33 insertions, 1 deletions
diff --git a/meta/recipes-support/libusb/libusb-compat/0001-usb.h-Include-sys-types.h.patch b/meta/recipes-support/libusb/libusb-compat/0001-usb.h-Include-sys-types.h.patch new file mode 100644 index 0000000000..b88440dec9 --- /dev/null +++ b/meta/recipes-support/libusb/libusb-compat/0001-usb.h-Include-sys-types.h.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 340f911f9e3f4ff6b01682c5341c959060782af2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 2 Apr 2015 19:18:45 -0700 | ||
4 | Subject: [PATCH] usb.h: Include sys/types.h | ||
5 | |||
6 | We need the definitions for things like u_intX_t | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | libusb/usb.h | 2 ++ | ||
13 | 1 file changed, 2 insertions(+) | ||
14 | |||
15 | diff --git a/libusb/usb.h b/libusb/usb.h | ||
16 | index 84e730f..caffae2 100644 | ||
17 | --- a/libusb/usb.h | ||
18 | +++ b/libusb/usb.h | ||
19 | @@ -31,6 +31,8 @@ | ||
20 | |||
21 | #include <dirent.h> | ||
22 | |||
23 | +#include <sys/types.h> | ||
24 | + | ||
25 | /* | ||
26 | * USB spec information | ||
27 | * | ||
28 | -- | ||
29 | 2.1.4 | ||
30 | |||
diff --git a/meta/recipes-support/libusb/libusb-compat_0.1.5.bb b/meta/recipes-support/libusb/libusb-compat_0.1.5.bb index 74761d6a44..646872cb96 100644 --- a/meta/recipes-support/libusb/libusb-compat_0.1.5.bb +++ b/meta/recipes-support/libusb/libusb-compat_0.1.5.bb | |||
@@ -18,7 +18,9 @@ BBCLASSEXTEND = "native nativesdk" | |||
18 | 18 | ||
19 | PE = "1" | 19 | PE = "1" |
20 | 20 | ||
21 | SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2" | 21 | SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2 \ |
22 | file://0001-usb.h-Include-sys-types.h.patch \ | ||
23 | " | ||
22 | 24 | ||
23 | SRC_URI[md5sum] = "2780b6a758a1e2c2943bdbf7faf740e4" | 25 | SRC_URI[md5sum] = "2780b6a758a1e2c2943bdbf7faf740e4" |
24 | SRC_URI[sha256sum] = "404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a" | 26 | SRC_URI[sha256sum] = "404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a" |