diff options
author | Bastien Nocera <hadess@hadess.net> | 2017-09-21 17:17:22 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2017-09-21 17:17:22 +0200 |
commit | 2dd321fab73c5c32c26349653fa1fd33dc1a86d0 (patch) | |
tree | 3467c75a1f176e6c5a2d34a18c5042f4a36d01c4 /src | |
parent | 212599f0eec8c3a2e17adb0d93cff3651cfc1cd2 (diff) |
linux: Fix compilation with libimobiledevice git
Since libimobiledevice 5a8449a, LOCKDOWN_E_NOT_ENOUGH_DATA was renamed
to LOCKDOWN_E_RECEIVE_TIMEOUT. We'll use "-7" to avoid having to use
build glue.
Diffstat (limited to 'src')
-rw-r--r-- | src/linux/up-device-idevice.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/linux/up-device-idevice.c b/src/linux/up-device-idevice.c index 4681637..97d230c 100644 --- a/src/linux/up-device-idevice.c +++ b/src/linux/up-device-idevice.c @@ -86,8 +86,10 @@ lockdownd_error_to_string (lockdownd_error_t lerr) return "LOCKDOWN_E_SSL_ERROR"; case LOCKDOWN_E_DICT_ERROR: return "LOCKDOWN_E_DICT_ERROR"; - case LOCKDOWN_E_NOT_ENOUGH_DATA: - return "LOCKDOWN_E_NOT_ENOUGH_DATA"; + case -7: + /* Either LOCKDOWN_E_NOT_ENOUGH_DATA or + * LOCKDOWN_E_RECEIVE_TIMEOUT depending on version */ + return "LOCKDOWN_E_RECEIVE_TIMEOUT"; case LOCKDOWN_E_MUX_ERROR: return "LOCKDOWN_E_MUX_ERROR"; case LOCKDOWN_E_NO_RUNNING_SESSION: |