summaryrefslogtreecommitdiffstats
path: root/src/usb-device.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2016-12-16 15:39:46 +0100
committerPali Rohár <pali.rohar@gmail.com>2016-12-16 15:39:46 +0100
commit7522a9fbc72f14c5cb7fbaa54fb57526c5221d85 (patch)
tree6a58251e655580a3ba94357f57aed24dd17d9113 /src/usb-device.c
parent6ec64f4992ccd5e4ff42e9578d6c306a5b688a35 (diff)
download0xFFFF-7522a9fbc72f14c5cb7fbaa54fb57526c5221d85.tar.bz2
all: Fix compilation when u_int*_t are not defined and used by usb.h
Diffstat (limited to 'src/usb-device.c')
-rw-r--r--src/usb-device.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/usb-device.c b/src/usb-device.c
index 391574a..24ce4be 100644
--- a/src/usb-device.c
+++ b/src/usb-device.c
@@ -31,14 +31,6 @@
#include <signal.h>
#include <dlfcn.h>
-#include <usb.h>
-
-#ifdef __linux__
-#ifdef LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP
-#include <sys/ioctl.h>
-#endif
-#endif
-
#include "global.h"
#include "device.h"
#include "usb-device.h"
@@ -47,6 +39,12 @@
#include "cold-flash.h"
#include "mkii.h"
+#ifdef __linux__
+#ifdef LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP
+#include <sys/ioctl.h>
+#endif
+#endif
+
static struct usb_flash_device usb_devices[] = {
{ 0x0421, 0x0096, -1, -1, -1, FLASH_DISK, { DEVICE_RX_44, 0 } },
{ 0x0421, 0x0105, 2, 1, -1, FLASH_NOLO, { DEVICE_SU_18, DEVICE_RX_44, DEVICE_RX_48, DEVICE_RX_51, DEVICE_RM_680, 0 } },