mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-24 02:59:49 +02:00
condition libusb include
This commit is contained in:
1 parent
01531fabda
commit
550ce0bd1c
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -10,7 +10,6 @@
|
||||
#include <usbmuxd.h>
|
||||
#include <libirecovery.h>
|
||||
#include <libimobiledevice/libimobiledevice.h>
|
||||
#include <libusb-1.0/libusb.h>
|
||||
|
||||
#define LOG(loglevel, ...) p1_log(loglevel, __FILE__, __LINE__, __func__, __VA_ARGS__)
|
||||
#define CLEAR() printf("\33[2K\r");
|
||||
@@ -18,6 +17,7 @@
|
||||
#define CMD_LEN_MAX 512
|
||||
#define OVERRIDE_MAGIC 0xd803b376
|
||||
#ifdef USE_LIBUSB
|
||||
#include <libusb-1.0/libusb.h>
|
||||
|
||||
#define USB_RET_SUCCESS LIBUSB_SUCCESS
|
||||
#define USB_RET_NOT_RESPONDING LIBUSB_ERROR_OTHER
|
||||
|
||||
@@ -247,5 +247,6 @@ int wait_for_pongo(void) {
|
||||
while (get_spin()) {
|
||||
sleep(1);
|
||||
}
|
||||
CFRelease(cfdict);
|
||||
return -1;
|
||||
}
|
||||
Reference in new issue
Block a user