diff options
Diffstat (limited to 'src/sbservices.h')
| -rw-r--r-- | src/sbservices.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sbservices.h b/src/sbservices.h index 1c85fe8..2b600ad 100644 --- a/src/sbservices.h +++ b/src/sbservices.h | |||
| @@ -21,14 +21,22 @@ | |||
| 21 | #ifndef ISBSERVICES_H | 21 | #ifndef ISBSERVICES_H |
| 22 | #define ISBSERVICES_H | 22 | #define ISBSERVICES_H |
| 23 | 23 | ||
| 24 | #ifdef WIN32 | ||
| 25 | #include <windows.h> | ||
| 26 | #else | ||
| 24 | #include <pthread.h> | 27 | #include <pthread.h> |
| 28 | #endif | ||
| 25 | 29 | ||
| 26 | #include "libimobiledevice/sbservices.h" | 30 | #include "libimobiledevice/sbservices.h" |
| 27 | #include "property_list_service.h" | 31 | #include "property_list_service.h" |
| 28 | 32 | ||
| 29 | struct sbservices_client_private { | 33 | struct sbservices_client_private { |
| 30 | property_list_service_client_t parent; | 34 | property_list_service_client_t parent; |
| 35 | #ifdef WIN32 | ||
| 36 | CRITICAL_SECTION mutex; | ||
| 37 | #else | ||
| 31 | pthread_mutex_t mutex; | 38 | pthread_mutex_t mutex; |
| 39 | #endif | ||
| 32 | }; | 40 | }; |
| 33 | 41 | ||
| 34 | #endif | 42 | #endif |
