summaryrefslogtreecommitdiffstats
path: root/tools/irecovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/irecovery.c')
-rw-r--r--tools/irecovery.c6
1 files changed, 6 insertions, 0 deletions
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 <readline/readline.h>
#include <readline/history.h>
+#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__)