| 1 | Dfu-programmer cannot cannot find libusb. This patch fixes that.
|
| 2 |
|
| 3 | diff --git a/src/dfu-device.h b/src/dfu-device.h
|
| 4 | index bbdfa99..31af0e8 100644
|
| 5 | |
| 6 | |
| 7 | @@ -6,7 +6,7 @@
|
| 8 | #endif
|
| 9 | #include <stdint.h>
|
| 10 | #ifdef HAVE_LIBUSB_1_0
|
| 11 | -#include <libusb.h>
|
| 12 | +#include <libusb-1.0/libusb.h>
|
| 13 | #else
|
| 14 | #include <usb.h>
|
| 15 | #endif
|
| 16 |
|
| 17 | diff --git a/src/main.c b/src/main.c
|
| 18 | index ef2aa16..dcc3636 100644
|
| 19 | |
| 20 | |
| 21 | @@ -24,7 +24,7 @@
|
| 22 | #include <stdio.h>
|
| 23 | #include <string.h>
|
| 24 | #ifdef HAVE_LIBUSB_1_0
|
| 25 | -#include <libusb.h>
|
| 26 | +#include <libusb-1.0/libusb.h>
|
| 27 | #else
|
| 28 | #include <usb.h>
|
| 29 | #endif
|
| 30 |
|
| 31 | diff --git a/src/dfu.c b/src/dfu.c
|
| 32 | index 7dbcc57..952e896 100644
|
| 33 | |
| 34 | |
| 35 | @@ -27,7 +27,7 @@
|
| 36 | #include <stdlib.h>
|
| 37 | #include <stddef.h>
|
| 38 | #ifdef HAVE_LIBUSB_1_0
|
| 39 | -#include <libusb.h>
|
| 40 | +#include <libusb-1.0/libusb.h>
|
| 41 | #else
|
| 42 | #include <usb.h>
|
| 43 | #endif
|
| 44 |
|
| 45 | diff --git a/src/dfu.h b/src/dfu.h
|
| 46 | index 2a159e8..63510f2 100644
|
| 47 | |
| 48 | |
| 49 | @@ -25,7 +25,7 @@
|
| 50 | # include <config.h>
|
| 51 | #endif
|
| 52 | #ifdef HAVE_LIBUSB_1_0
|
| 53 | -#include <libusb.h>
|
| 54 | +#include <libusb-1.0/libusb.h>
|
| 55 | #else
|
| 56 | #include <usb.h>
|
| 57 | #endif
|