Work around missing EOVERFLOW define on cygwin/mingw.

According to the mighty google, stat() will just return
an incorrect file size for files > 2 GB on cygwin.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29995 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Jarosch 2011-06-12 12:12:18 +00:00
parent 1d1fa41b20
commit 4e8bed2933

View file

@ -346,12 +346,14 @@ read_next:
if (STAT(buffer, &s)) /* get info */
{
#ifdef EOVERFLOW
/* File size larger than 2 GB? */
if (errno == EOVERFLOW)
{
DEBUGF("stat() overflow for %s. Skipping\n", buffer);
goto read_next;
}
#endif
return NULL;
}