diff options
Diffstat (limited to 'tools/idevicebackup.c')
| -rw-r--r-- | tools/idevicebackup.c | 6 |
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 |
