summaryrefslogtreecommitdiffstats
path: root/src/usb-device.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/usb-device.h')
-rw-r--r--src/usb-device.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/usb-device.h b/src/usb-device.h
index 101fbcd..082bf73 100644
--- a/src/usb-device.h
+++ b/src/usb-device.h
@@ -20,6 +20,13 @@
#ifndef USB_DEVICE_H
#define USB_DEVICE_H
+#include <stdint.h>
+
+/* u_int*_t types are not defined without _GNU_SOURCE but usb.h needs them */
+#define u_int8_t uint8_t
+#define u_int16_t uint16_t
+#define u_int32_t uint32_t
+
#include <usb.h>
#define USB_READ_EP (USB_ENDPOINT_IN | 0x1)