diff options
Diffstat (limited to 'src/installation_proxy.h')
| -rw-r--r-- | src/installation_proxy.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/installation_proxy.h b/src/installation_proxy.h index 40175a0..4f79c12 100644 --- a/src/installation_proxy.h +++ b/src/installation_proxy.h | |||
| @@ -22,24 +22,14 @@ | |||
| 22 | #ifndef __INSTALLATION_PROXY_H | 22 | #ifndef __INSTALLATION_PROXY_H |
| 23 | #define __INSTALLATION_PROXY_H | 23 | #define __INSTALLATION_PROXY_H |
| 24 | 24 | ||
| 25 | #ifdef WIN32 | ||
| 26 | #include <windows.h> | ||
| 27 | #else | ||
| 28 | #include <pthread.h> | ||
| 29 | #endif | ||
| 30 | |||
| 31 | #include "libimobiledevice/installation_proxy.h" | 25 | #include "libimobiledevice/installation_proxy.h" |
| 32 | #include "property_list_service.h" | 26 | #include "property_list_service.h" |
| 27 | #include "common/thread.h" | ||
| 33 | 28 | ||
| 34 | struct instproxy_client_private { | 29 | struct instproxy_client_private { |
| 35 | property_list_service_client_t parent; | 30 | property_list_service_client_t parent; |
| 36 | #ifdef WIN32 | 31 | mutex_t mutex; |
| 37 | CRITICAL_SECTION mutex; | 32 | thread_t status_updater; |
| 38 | HANDLE status_updater; | ||
| 39 | #else | ||
| 40 | pthread_mutex_t mutex; | ||
| 41 | pthread_t status_updater; | ||
| 42 | #endif | ||
| 43 | }; | 33 | }; |
| 44 | 34 | ||
| 45 | #endif | 35 | #endif |
