blob: 7df44737ad7d69e04542f93f7056f56829f88b8e [file] [log] [blame]
Andrew Geissler2ee498a2020-05-29 15:52:06 -05001From 840795dcb48214b74cfde75e7ce5e8a1a6c64a46 Mon Sep 17 00:00:00 2001
Patrick Williamsc124f4f2015-09-15 14:41:29 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 2 Apr 2015 19:18:45 -0700
4Subject: [PATCH] usb.h: Include sys/types.h
5
6We need the definitions for things like u_intX_t
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 libusb/usb.h | 2 ++
13 1 file changed, 2 insertions(+)
14
15diff --git a/libusb/usb.h b/libusb/usb.h
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060016index ea62543..18b610a 100644
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017--- a/libusb/usb.h
18+++ b/libusb/usb.h
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060019@@ -46,6 +46,8 @@ typedef unsigned __int32 uint32_t;
Andrew Geissler2ee498a2020-05-29 15:52:06 -050020 #include <stdint.h>
21 #endif
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022
23+#include <sys/types.h>
24+
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060025 /* On linux PATH_MAX is defined in linux/limits.h. */
26 #if defined(__linux__)
27 #include <linux/limits.h>
28--
292.34.1
30