summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/restore.c2
-rw-r--r--src/thread.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c
index a187dfa..cdab845 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -2318,7 +2318,7 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit
idevice_t device = NULL;
restored_client_t restore = NULL;
restored_error_t restore_error = RESTORE_E_SUCCESS;
- thread_t fdr_thread = NULL;
+ thread_t fdr_thread = (thread_t)NULL;
restore_finished = 0;
diff --git a/src/thread.h b/src/thread.h
index 11e789a..feccc94 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -34,6 +34,7 @@ typedef volatile struct {
#define THREAD_ID GetCurrentThreadId()
#else
#include <pthread.h>
+#include <signal.h>
typedef pthread_t thread_t;
typedef pthread_mutex_t mutex_t;
typedef pthread_once_t thread_once_t;