diff options
| author | 2024-11-27 12:56:02 +0100 | |
|---|---|---|
| committer | 2024-11-29 14:38:42 +0100 | |
| commit | 9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f (patch) | |
| tree | 685088ccc31d3a0971ee65d42346294af1011b4d /src/installation_proxy.c | |
| parent | 563f912919d4615486ed3e02b517b005f784c1d9 (diff) | |
| download | libimobiledevice-9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f.tar.gz libimobiledevice-9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f.tar.bz2 | |
Fix compilation on MSVC
Diffstat (limited to 'src/installation_proxy.c')
| -rw-r--r-- | src/installation_proxy.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/installation_proxy.c b/src/installation_proxy.c index ec19da0..bb6ef01 100644 --- a/src/installation_proxy.c +++ b/src/installation_proxy.c | |||
| @@ -26,7 +26,11 @@ | |||
| 26 | #include <string.h> | 26 | #include <string.h> |
| 27 | #include <stdlib.h> | 27 | #include <stdlib.h> |
| 28 | #include <inttypes.h> | 28 | #include <inttypes.h> |
| 29 | |||
| 30 | #ifndef _MSC_VER | ||
| 29 | #include <unistd.h> | 31 | #include <unistd.h> |
| 32 | #endif | ||
| 33 | |||
| 30 | #include <plist/plist.h> | 34 | #include <plist/plist.h> |
| 31 | 35 | ||
| 32 | #include "installation_proxy.h" | 36 | #include "installation_proxy.h" |
| @@ -251,7 +255,7 @@ instproxy_error_t instproxy_client_new(idevice_t device, lockdownd_service_descr | |||
| 251 | 255 | ||
| 252 | instproxy_error_t instproxy_client_start_service(idevice_t device, instproxy_client_t * client, const char* label) | 256 | instproxy_error_t instproxy_client_start_service(idevice_t device, instproxy_client_t * client, const char* label) |
| 253 | { | 257 | { |
| 254 | instproxy_error_t err = INSTPROXY_E_UNKNOWN_ERROR; | 258 | int32_t err = INSTPROXY_E_UNKNOWN_ERROR; |
| 255 | service_client_factory_start_service(device, INSTPROXY_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(instproxy_client_new), &err); | 259 | service_client_factory_start_service(device, INSTPROXY_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(instproxy_client_new), &err); |
| 256 | return err; | 260 | return err; |
| 257 | } | 261 | } |
