--- mysys/my_redel.c 2013-07-25 16:47:39.000000000 +0200 +++ mysys/my_redel_patched.c 2013-07-25 16:48:23.000000000 +0200 @@ -75,9 +75,17 @@ int my_copystat(const char *from, const char *to, int MyFlags) { - struct stat statbuf; + int ret; - if (stat(from, &statbuf)) +#ifdef __WIN__ + struct _stat64 statbuf; + ret = _stat64(from, &statbuf); +#else + struct stat statbuf; + ret = stat(from, &statbuf) +#endif + + if (ret) { my_errno=errno; if (MyFlags & (MY_FAE+MY_WME))