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:
parent
1d1fa41b20
commit
4e8bed2933
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue