summaryrefslogtreecommitdiff
path: root/include/usbhost/usbhost.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usbhost/usbhost.h')
-rw-r--r--include/usbhost/usbhost.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/usbhost/usbhost.h b/include/usbhost/usbhost.h
index f7cc52e5a..5332acd30 100644
--- a/include/usbhost/usbhost.h
+++ b/include/usbhost/usbhost.h
@@ -23,6 +23,13 @@ extern "C" {
#include <stdint.h>
+#include <linux/version.h>
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 20)
+#include <linux/usb/ch9.h>
+#else
+#include <linux/usb_ch9.h>
+#endif
+
struct usb_host_context;
struct usb_endpoint_descriptor;