diff options
Diffstat (limited to 'src/notification_proxy.h')
-rw-r--r-- | src/notification_proxy.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/notification_proxy.h b/src/notification_proxy.h index 4a9cdad..0f92cdf 100644 --- a/src/notification_proxy.h +++ b/src/notification_proxy.h @@ -21,15 +21,24 @@ #ifndef INOTIFICATION_PROXY_H #define INOTIFICATION_PROXY_H +#ifdef WIN32 +#include <windows.h> +#else #include <pthread.h> +#endif #include "libimobiledevice/notification_proxy.h" #include "property_list_service.h" struct np_client_private { property_list_service_client_t parent; +#ifdef WIN32 + CRITICAL_SECTION mutex; + HANDLE notifier; +#else pthread_mutex_t mutex; pthread_t notifier; +#endif }; void* np_notifier(void* arg); |