diff options
| author | 2024-11-27 12:56:02 +0100 | |
|---|---|---|
| committer | 2024-11-29 14:38:42 +0100 | |
| commit | 9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f (patch) | |
| tree | 685088ccc31d3a0971ee65d42346294af1011b4d /src/afc.c | |
| parent | 563f912919d4615486ed3e02b517b005f784c1d9 (diff) | |
| download | libimobiledevice-9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f.tar.gz libimobiledevice-9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f.tar.bz2 | |
Fix compilation on MSVC
Diffstat (limited to 'src/afc.c')
| -rw-r--r-- | src/afc.c | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -26,9 +26,12 @@ | |||
| 26 | #endif | 26 | #endif |
| 27 | #include <stdio.h> | 27 | #include <stdio.h> |
| 28 | #include <stdlib.h> | 28 | #include <stdlib.h> |
| 29 | #include <unistd.h> | ||
| 30 | #include <string.h> | 29 | #include <string.h> |
| 31 | 30 | ||
| 31 | #ifndef _MSC_VER | ||
| 32 | #include <unistd.h> | ||
| 33 | #endif | ||
| 34 | |||
| 32 | #include "idevice.h" | 35 | #include "idevice.h" |
| 33 | #include "afc.h" | 36 | #include "afc.h" |
| 34 | #include "common/debug.h" | 37 | #include "common/debug.h" |
| @@ -115,7 +118,7 @@ afc_error_t afc_client_new(idevice_t device, lockdownd_service_descriptor_t serv | |||
| 115 | 118 | ||
| 116 | afc_error_t afc_client_start_service(idevice_t device, afc_client_t * client, const char* label) | 119 | afc_error_t afc_client_start_service(idevice_t device, afc_client_t * client, const char* label) |
| 117 | { | 120 | { |
| 118 | afc_error_t err = AFC_E_UNKNOWN_ERROR; | 121 | int32_t err = AFC_E_UNKNOWN_ERROR; |
| 119 | service_client_factory_start_service(device, AFC_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(afc_client_new), &err); | 122 | service_client_factory_start_service(device, AFC_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(afc_client_new), &err); |
| 120 | return err; | 123 | return err; |
| 121 | } | 124 | } |
