From f2d82a136bfe85e893e4c2b7b5922a4d823812c1 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 6 Apr 2015 17:36:40 +0000 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-support/libusb/libusb-compat_0.1.5.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta/recipes-support/libusb/libusb-compat_0.1.5.bb') 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" PE = "1" -SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2" +SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2 \ + file://0001-usb.h-Include-sys-types.h.patch \ + " SRC_URI[md5sum] = "2780b6a758a1e2c2943bdbf7faf740e4" SRC_URI[sha256sum] = "404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a" -- cgit v1.2.3-54-g00ecf