diff options
| author | 2026-06-20 00:33:36 +0800 | |
|---|---|---|
| committer | 2026-06-20 00:33:36 +0800 | |
| commit | 173f8df9e0c6db2f1db103babc94f245f22c1dd3 (patch) | |
| tree | d9ecdbe68200dd6df40c09fc7a950f63bcc91b03 /src | |
| parent | 70b4cb070c23387d72bb2feed04fded45f4ba535 (diff) | |
| download | libirecovery-173f8df9e0c6db2f1db103babc94f245f22c1dd3.tar.gz libirecovery-173f8df9e0c6db2f1db103babc94f245f22c1dd3.tar.bz2 | |
fix dummy usb build
Diffstat (limited to 'src')
| -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 71563e1..4dbea0e 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c | |||
| @@ -104,8 +104,10 @@ struct irecv_async_transfer { | |||
| 104 | #ifdef HAVE_IOKIT | 104 | #ifdef HAVE_IOKIT |
| 105 | kern_return_t ret; | 105 | kern_return_t ret; |
| 106 | #else | 106 | #else |
| 107 | #ifndef USE_DUMMY | ||
| 107 | enum libusb_transfer_status ret; | 108 | enum libusb_transfer_status ret; |
| 108 | #endif | 109 | #endif |
| 110 | #endif | ||
| 109 | }; | 111 | }; |
| 110 | 112 | ||
| 111 | #endif | 113 | #endif |
| @@ -1533,6 +1535,7 @@ static int iokit_async_usb_control_transfer(irecv_client_t client, uint8_t bm_re | |||
| 1533 | } | 1535 | } |
| 1534 | 1536 | ||
| 1535 | #else | 1537 | #else |
| 1538 | #ifndef USE_DUMMY | ||
| 1536 | 1539 | ||
| 1537 | static void async_cb(struct libusb_transfer* usb_transfer) { | 1540 | static void async_cb(struct libusb_transfer* usb_transfer) { |
| 1538 | struct irecv_async_transfer* transfer = usb_transfer->user_data; | 1541 | struct irecv_async_transfer* transfer = usb_transfer->user_data; |
| @@ -1542,6 +1545,7 @@ static void async_cb(struct libusb_transfer* usb_transfer) { | |||
| 1542 | 1545 | ||
| 1543 | #endif | 1546 | #endif |
| 1544 | #endif | 1547 | #endif |
| 1548 | #endif | ||
| 1545 | 1549 | ||
| 1546 | IRECV_API int irecv_async_usb_control_transfer(irecv_client_t client, uint8_t bm_request_type, uint8_t b_request, uint16_t w_value, uint16_t w_index, unsigned char *data, uint16_t w_length) { | 1550 | IRECV_API int irecv_async_usb_control_transfer(irecv_client_t client, uint8_t bm_request_type, uint8_t b_request, uint16_t w_value, uint16_t w_index, unsigned char *data, uint16_t w_length) { |
| 1547 | #ifdef USE_DUMMY | 1551 | #ifdef USE_DUMMY |
