summaryrefslogtreecommitdiffstats
path: root/tools/idevicebackup2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/idevicebackup2.c')
-rw-r--r--tools/idevicebackup2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index a0ffc9b..697e276 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -47,6 +47,7 @@
#ifdef WIN32
#include <windows.h>
+#include <conio.h>
#define sleep(x) Sleep(x*1000)
#else
#include <termios.h>
@@ -1968,7 +1969,6 @@ checkpoint:
char *oldpath = build_path(backup_directory, key, NULL);
#ifdef WIN32
- struct stat st;
if ((stat(newpath, &st) == 0) && S_ISDIR(st.st_mode))
RemoveDirectory(newpath);
else
@@ -2023,7 +2023,6 @@ checkpoint:
char *newpath = build_path(backup_directory, str, NULL);
free(str);
#ifdef WIN32
- struct stat st;
int res = 0;
if ((stat(newpath, &st) == 0) && S_ISDIR(st.st_mode))
res = RemoveDirectory(newpath);