Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 1 | From cb2a3991545ba9e885704226ed3e831bd5e4cb27 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 20 May 2019 22:10:05 -0700 |
| 4 | Subject: [PATCH] usbbus: Include stdint.h for uintX_t |
| 5 | |
| 6 | stdint.h is needed for uintX_t typedefs which are |
| 7 | used to replace u_intX_t in libusb API headers in the cmake files |
| 8 | |
| 9 | Upstream-Status: Submitted [https://github.com/nfc-tools/libnfc/pull/544] |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | libnfc/buses/usbbus.h | 2 ++ |
| 13 | 1 file changed, 2 insertions(+) |
| 14 | |
| 15 | --- a/libnfc/buses/usbbus.h |
| 16 | +++ b/libnfc/buses/usbbus.h |
| 17 | @@ -35,6 +35,7 @@ |
| 18 | |
| 19 | #ifndef _WIN32 |
| 20 | // Under POSIX system, we use libusb (>= 0.1.12) |
| 21 | +#include <stdint.h> |
| 22 | #include <usb.h> |
| 23 | #define USB_TIMEDOUT ETIMEDOUT |
| 24 | #define _usb_strerror( X ) strerror(-X) |