From 475c9679716eec92e3508063b7486e3508c4c974 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 10 Sep 2011 19:08:39 +0200 Subject: WIN32: use windows threads and mutexes instead of pthread_* --- src/afc.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/afc.h') diff --git a/src/afc.h b/src/afc.h index c86828c..731746a 100644 --- a/src/afc.h +++ b/src/afc.h @@ -20,7 +20,11 @@ */ #include +#ifdef WIN32 +#include +#else #include +#endif #include "libimobiledevice/afc.h" @@ -53,7 +57,11 @@ struct afc_client_private { AFCPacket *afc_packet; int file_handle; int lock; +#ifdef WIN32 + CRITICAL_SECTION mutex; +#else pthread_mutex_t mutex; +#endif int own_connection; }; -- cgit v1.1-32-gdbae