summaryrefslogtreecommitdiffstats
path: root/tools/idevicebackup.c
diff options
context:
space:
mode:
authorGravatar Duncan Ogilvie2024-11-27 12:01:18 +0100
committerGravatar Nikias Bassen2024-11-29 14:36:34 +0100
commitbcced6c4f6a79e09ed3961632b2faf81fe873137 (patch)
tree71bb6a70a3438c68229e4906e6bce14974a9aee8 /tools/idevicebackup.c
parentba829e6f1a62bdad7866572d1e2cff1836ced742 (diff)
downloadlibimobiledevice-bcced6c4f6a79e09ed3961632b2faf81fe873137.tar.gz
libimobiledevice-bcced6c4f6a79e09ed3961632b2faf81fe873137.tar.bz2
Fix attempts to detect Windows using _WIN32
Diffstat (limited to 'tools/idevicebackup.c')
-rw-r--r--tools/idevicebackup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c
index c0537b8..5de2d68 100644
--- a/tools/idevicebackup.c
+++ b/tools/idevicebackup.c
@@ -51,7 +51,7 @@
51#define LOCK_ATTEMPTS 50 51#define LOCK_ATTEMPTS 50
52#define LOCK_WAIT 200000 52#define LOCK_WAIT 200000
53 53
54#ifdef WIN32 54#ifdef _WIN32
55#include <windows.h> 55#include <windows.h>
56#define sleep(x) Sleep(x*1000) 56#define sleep(x) Sleep(x*1000)
57#endif 57#endif
@@ -642,7 +642,7 @@ int main(int argc, char *argv[])
642 /* we need to exit cleanly on running backups and restores or we cause havok */ 642 /* we need to exit cleanly on running backups and restores or we cause havok */
643 signal(SIGINT, clean_exit); 643 signal(SIGINT, clean_exit);
644 signal(SIGTERM, clean_exit); 644 signal(SIGTERM, clean_exit);
645#ifndef WIN32 645#ifndef _WIN32
646 signal(SIGQUIT, clean_exit); 646 signal(SIGQUIT, clean_exit);
647 signal(SIGPIPE, SIG_IGN); 647 signal(SIGPIPE, SIG_IGN);
648#endif 648#endif
@@ -1352,7 +1352,7 @@ files_out:
1352 file_info_path = mobilebackup_build_path(backup_directory, hash, ".mddata"); 1352 file_info_path = mobilebackup_build_path(backup_directory, hash, ".mddata");
1353 1353
1354 /* determine file size */ 1354 /* determine file size */
1355#ifdef WIN32 1355#ifdef _WIN32
1356 struct _stati64 fst; 1356 struct _stati64 fst;
1357 if (_stati64(file_info_path, &fst) != 0) 1357 if (_stati64(file_info_path, &fst) != 0)
1358#else 1358#else