From cfa1eb9f7d472ad0248e60000133b8f23a5f8125 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 23 May 2013 20:17:13 +0200 Subject: Silence compiler warnings for win32 builds --- tools/idevicebackup2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/idevicebackup2.c') 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 +#include #define sleep(x) Sleep(x*1000) #else #include @@ -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); -- cgit v1.1-32-gdbae