From 1b9d972de6625d97dec8516def6c3eaac9a87cb3 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 5 Oct 2011 21:09:14 +0200 Subject: tools: win32 build fixes --- tools/idevicebackup.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tools/idevicebackup.c') diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c index 25f8014..d6d9228 100644 --- a/tools/idevicebackup.c +++ b/tools/idevicebackup.c @@ -48,6 +48,10 @@ #define LOCK_ATTEMPTS 50 #define LOCK_WAIT 200000 +#ifdef WIN32 +#define sleep(x) Sleep(x*1000) +#endif + static mobilebackup_client_t mobilebackup = NULL; static lockdownd_client_t client = NULL; static idevice_t phone = NULL; @@ -831,9 +835,11 @@ int main(int argc, char *argv[]) /* we need to exit cleanly on running backups and restores or we cause havok */ signal(SIGINT, clean_exit); - signal(SIGQUIT, clean_exit); signal(SIGTERM, clean_exit); +#ifndef WIN32 + signal(SIGQUIT, clean_exit); signal(SIGPIPE, SIG_IGN); +#endif /* parse cmdline args */ for (i = 1; i < argc; i++) { -- cgit v1.1-32-gdbae