1From af07587e8775c25450cda8ba9e9a8b1a58072634 Mon Sep 17 00:00:00 2001 2From: Bartosz Golaszewski <brgl@bgdev.pl> 3Date: Mon, 3 Jul 2017 15:55:00 +0200 4Subject: [PATCH] fix a build issue on linux 5 6On linux PATH_MAX is defined in linux/limits.h. If we include usb.h 7without previously having indirectly included it, the build fails. 8 9Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> 10--- 11 libusb/usb.h | 5 +++++ 12 1 file changed, 5 insertions(+) 13 14diff --git a/libusb/usb.h b/libusb/usb.h 15index d2c30aa..7ad9a66 100644 16--- a/libusb/usb.h 17+++ b/libusb/usb.h 18@@ -41,6 +41,11 @@ typedef unsigned __int32 uint32_t; 19 #include <stdint.h> 20 #endif 21 22+/* On linux PATH_MAX is defined in linux/limits.h. */ 23+#if defined(__linux__) 24+#include <linux/limits.h> 25+#endif 26+ 27 /* 28 * USB spec information 29 * 30-- 312.9.3 32 33