summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-06-12 12:12:18 +0000
committerThomas Jarosch <tomj@simonv.com>2011-06-12 12:12:18 +0000
commit4e8bed2933dea6b6482d2b4b4d23bde4947055f9 (patch)
treebc8a4dc88ee591f4217093ab78b3c547aee04117
parent1d1fa41b2089c5f94a092d60b2b0d37d4f06ffa1 (diff)
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
-rw-r--r--uisimulator/common/io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index 2195a5e86f..d094feee6b 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -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;
}