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 @@ #include <string.h> #include <stdlib.h> #include <inttypes.h> + +#ifndef _MSC_VER #include <unistd.h> +#endif + #include <plist/plist.h> #include "installation_proxy.h" @@ -251,7 +255,7 @@ instproxy_error_t instproxy_client_new(idevice_t device, lockdownd_service_descr instproxy_error_t instproxy_client_start_service(idevice_t device, instproxy_client_t * client, const char* label) { - instproxy_error_t err = INSTPROXY_E_UNKNOWN_ERROR; + int32_t err = INSTPROXY_E_UNKNOWN_ERROR; service_client_factory_start_service(device, INSTPROXY_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(instproxy_client_new), &err); return err; } |