diff options
| author | 2019-11-11 18:08:22 +0100 | |
|---|---|---|
| committer | 2019-11-11 18:10:17 +0100 | |
| commit | 9af2b12552693a47601347e1eafc1e94132d727e (patch) | |
| tree | 8dbde85e4fc217bba6d04894de73318a682e2536 /src/preflight.c | |
| parent | 24e06d5247c37a7712d85f032ed3ba74d7a039f8 (diff) | |
| download | usbmuxd-9af2b12552693a47601347e1eafc1e94132d727e.tar.gz usbmuxd-9af2b12552693a47601347e1eafc1e94132d727e.tar.bz2 | |
Fix compatibility with latest changes in libimobiledevice
Diffstat (limited to 'src/preflight.c')
| -rw-r--r-- | src/preflight.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/preflight.c b/src/preflight.c index 86a51cf..c7cfa50 100644 --- a/src/preflight.c +++ b/src/preflight.c | |||
| @@ -43,14 +43,17 @@ | |||
| 43 | #include "log.h" | 43 | #include "log.h" |
| 44 | 44 | ||
| 45 | #ifdef HAVE_LIBIMOBILEDEVICE | 45 | #ifdef HAVE_LIBIMOBILEDEVICE |
| 46 | enum connection_type { | 46 | #ifndef HAVE_ENUM_IDEVICE_CONNECTION_TYPE |
| 47 | CONNECTION_USBMUXD = 1 | 47 | enum idevice_connection_type { |
| 48 | CONNECTION_USBMUXD = 1, | ||
| 49 | CONNECTION_NETWORK | ||
| 48 | }; | 50 | }; |
| 51 | #endif | ||
| 49 | 52 | ||
| 50 | struct idevice_private { | 53 | struct idevice_private { |
| 51 | char *udid; | 54 | char *udid; |
| 52 | uint32_t mux_id; | 55 | uint32_t mux_id; |
| 53 | enum connection_type conn_type; | 56 | enum idevice_connection_type conn_type; |
| 54 | void *conn_data; | 57 | void *conn_data; |
| 55 | int version; | 58 | int version; |
| 56 | }; | 59 | }; |
