diff options
| -rw-r--r-- | src/libirecovery.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index 02d0075..cd247ad 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c | |||
| @@ -1664,7 +1664,11 @@ IRECV_API void irecv_set_debug_level(int level) { | |||
| 1664 | #ifndef WIN32 | 1664 | #ifndef WIN32 |
| 1665 | #ifndef HAVE_IOKIT | 1665 | #ifndef HAVE_IOKIT |
| 1666 | if(libirecovery_context) { | 1666 | if(libirecovery_context) { |
| 1667 | #if LIBUSB_API_VERSION >= 0x01000106 | ||
| 1668 | libusb_set_option(libirecovery_context, LIBUSB_OPTION_LOG_LEVEL, libirecovery_debug > 2 ? 1: 0); | ||
| 1669 | #else | ||
| 1667 | libusb_set_debug(libirecovery_context, libirecovery_debug > 2 ? 1: 0); | 1670 | libusb_set_debug(libirecovery_context, libirecovery_debug > 2 ? 1: 0); |
| 1671 | #endif | ||
| 1668 | } | 1672 | } |
| 1669 | #endif | 1673 | #endif |
| 1670 | #endif | 1674 | #endif |
