summaryrefslogtreecommitdiffstats
path: root/external/meta-openembedded/meta-oe/recipes-core/libnfc/libnfc/0001-usbbus-Include-stdint.h-for-uintX_t.patch
blob: b8ed87aa0fb58cb1536170b93641da71d54bdbee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From cb2a3991545ba9e885704226ed3e831bd5e4cb27 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 20 May 2019 22:10:05 -0700
Subject: [PATCH] usbbus: Include stdint.h for uintX_t

stdint.h is needed for uintX_t typedefs which are
used to replace u_intX_t in libusb API headers in the cmake files

Upstream-Status: Submitted [https://github.com/nfc-tools/libnfc/pull/544]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 libnfc/buses/usbbus.h | 2 ++
 1 file changed, 2 insertions(+)

--- a/libnfc/buses/usbbus.h
+++ b/libnfc/buses/usbbus.h
@@ -35,6 +35,7 @@
 
 #ifndef _WIN32
 // Under POSIX system, we use libusb (>= 0.1.12)
+#include <stdint.h>
 #include <usb.h>
 #define USB_TIMEDOUT ETIMEDOUT
 #define _usb_strerror( X ) strerror(-X)