diff options
| author | 2024-11-27 12:56:02 +0100 | |
|---|---|---|
| committer | 2024-11-29 14:38:42 +0100 | |
| commit | 9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f (patch) | |
| tree | 685088ccc31d3a0971ee65d42346294af1011b4d /src/notification_proxy.c | |
| parent | 563f912919d4615486ed3e02b517b005f784c1d9 (diff) | |
| download | libimobiledevice-9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f.tar.gz libimobiledevice-9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f.tar.bz2 | |
Fix compilation on MSVC
Diffstat (limited to 'src/notification_proxy.c')
| -rw-r--r-- | src/notification_proxy.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/notification_proxy.c b/src/notification_proxy.c index 9d983ba..c7e4660 100644 --- a/src/notification_proxy.c +++ b/src/notification_proxy.c | |||
| @@ -24,7 +24,11 @@ | |||
| 24 | #endif | 24 | #endif |
| 25 | #include <string.h> | 25 | #include <string.h> |
| 26 | #include <stdlib.h> | 26 | #include <stdlib.h> |
| 27 | |||
| 28 | #ifndef _MSC_VER | ||
| 27 | #include <unistd.h> | 29 | #include <unistd.h> |
| 30 | #endif | ||
| 31 | |||
| 28 | #include <plist/plist.h> | 32 | #include <plist/plist.h> |
| 29 | 33 | ||
| 30 | #include "notification_proxy.h" | 34 | #include "notification_proxy.h" |
| @@ -110,7 +114,7 @@ np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t servic | |||
| 110 | 114 | ||
| 111 | np_error_t np_client_start_service(idevice_t device, np_client_t* client, const char* label) | 115 | np_error_t np_client_start_service(idevice_t device, np_client_t* client, const char* label) |
| 112 | { | 116 | { |
| 113 | np_error_t err = NP_E_UNKNOWN_ERROR; | 117 | int32_t err = NP_E_UNKNOWN_ERROR; |
| 114 | service_client_factory_start_service(device, NP_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(np_client_new), &err); | 118 | service_client_factory_start_service(device, NP_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(np_client_new), &err); |
| 115 | return err; | 119 | return err; |
| 116 | } | 120 | } |
