summaryrefslogtreecommitdiffstats
path: root/src/phrecn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-19 19:26:20 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-19 19:26:20 +0200
commit26bdf36adb93789e7159577e53c9e426bb7a27cd (patch)
tree1d53d946c38ceeb45c0a7d3a6d47a5c4aa73c373 /src/phrecn.c
parent2542701f2e675bb364d8c3f04ffe6bed71f0ce1a (diff)
Fix windows compilation regression introduced in 1471f47a5c5b9d69863ec496bd7a57a9b0081d89
Diffstat (limited to 'src/phrecn.c')
-rw-r--r--src/phrecn.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/phrecn.c b/src/phrecn.c
index f5432d2..4f6b913 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -88,31 +88,6 @@ extern file_check_list_t file_check_list;
static int interface_cannot_create_file(void);
-#if defined(__CYGWIN__) || defined(__MINGW32__)
-/* Live antivirus protection may open file as soon as they are created by *
- * PhotoRec. PhotoRec will not be able to overwrite a file as long as the *
- * antivirus is scanning it, so let's wait a little bit if the creation *
- * failed. */
-
-#ifndef HAVE_SLEEP
-#define sleep(x) Sleep((x)*1000)
-#endif
-
-static FILE *fopen_with_retry(const char *path, const char *mode)
-{
- FILE *handle;
- if((handle=fopen(path, mode))!=NULL)
- return handle;
- sleep(1);
- if((handle=fopen(path, mode))!=NULL)
- return handle;
- sleep(2);
- if((handle=fopen(path, mode))!=NULL)
- return handle;
- return NULL;
-}
-#endif
-
#ifdef HAVE_NCURSES
static void recovery_finished(disk_t *disk, const partition_t *partition, const unsigned int file_nbr, const char *recup_dir, const pstatus_t ind_stop)
{