summaryrefslogtreecommitdiffstats
path: root/src/mobile_image_mounter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mobile_image_mounter.h')
-rw-r--r--src/mobile_image_mounter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mobile_image_mounter.h b/src/mobile_image_mounter.h
index e0828f9..ff0690d 100644
--- a/src/mobile_image_mounter.h
+++ b/src/mobile_image_mounter.h
@@ -21,14 +21,22 @@
#ifndef IMOBILE_IMAGE_MOUNTER_H
#define IMOBILE_IMAGE_MOUNTER_H
+#ifdef WIN32
+#include <windows.h>
+#else
#include <pthread.h>
+#endif
#include "libimobiledevice/mobile_image_mounter.h"
#include "property_list_service.h"
struct mobile_image_mounter_client_private {
property_list_service_client_t parent;
+#ifdef WIN32
+ CRITICAL_SECTION mutex;
+#else
pthread_mutex_t mutex;
+#endif
};
#endif