diff options
Diffstat (limited to 'src/afc.h')
-rw-r--r-- | src/afc.h | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -23,15 +23,11 @@ #define __AFC_H #include <stdint.h> -#ifdef WIN32 -#include <windows.h> -#else -#include <pthread.h> -#endif #include "libimobiledevice/afc.h" #include "service.h" #include "endianness.h" +#include "common/thread.h" #define AFC_MAGIC "CFA6LPAA" #define AFC_MAGIC_LEN (8) @@ -62,11 +58,7 @@ struct afc_client_private { AFCPacket *afc_packet; int file_handle; int lock; -#ifdef WIN32 - CRITICAL_SECTION mutex; -#else - pthread_mutex_t mutex; -#endif + mutex_t mutex; int free_parent; }; |