From c68efda6ef497fa00307b9478c9f3d818e540f51 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 26 Sep 2013 23:00:19 +0200 Subject: irecovery: Define sleep() for WIN32 --- tools/irecovery.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/irecovery.c b/tools/irecovery.c index 8e2138c..5c82a00 100644 --- a/tools/irecovery.c +++ b/tools/irecovery.c @@ -26,6 +26,12 @@ #include #include +#ifdef WIN32 +#ifndef sleep +#define sleep(n) Sleep(1000 * n) +#endif +#endif + #define FILE_HISTORY_PATH ".irecovery" #define debug(...) if(verbose) fprintf(stderr, __VA_ARGS__) -- cgit v1.1-32-gdbae