diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2016-12-16 15:39:46 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2016-12-16 15:39:46 +0100 |
commit | 7522a9fbc72f14c5cb7fbaa54fb57526c5221d85 (patch) | |
tree | 6a58251e655580a3ba94357f57aed24dd17d9113 /src/usb-device.h | |
parent | 6ec64f4992ccd5e4ff42e9578d6c306a5b688a35 (diff) | |
download | 0xFFFF-7522a9fbc72f14c5cb7fbaa54fb57526c5221d85.tar.bz2 |
all: Fix compilation when u_int*_t are not defined and used by usb.h
Diffstat (limited to 'src/usb-device.h')
-rw-r--r-- | src/usb-device.h | 7 |
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) |