mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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 */
|
if (STAT(buffer, &s)) /* get info */
|
||||||
{
|
{
|
||||||
|
#ifdef EOVERFLOW
|
||||||
/* File size larger than 2 GB? */
|
/* File size larger than 2 GB? */
|
||||||
if (errno == EOVERFLOW)
|
if (errno == EOVERFLOW)
|
||||||
{
|
{
|
||||||
DEBUGF("stat() overflow for %s. Skipping\n", buffer);
|
DEBUGF("stat() overflow for %s. Skipping\n", buffer);
|
||||||
goto read_next;
|
goto read_next;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue