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)
downloadrockbox-4e8bed2933dea6b6482d2b4b4d23bde4947055f9.tar.gz
rockbox-4e8bed2933dea6b6482d2b4b4d23bde4947055f9.zip
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:
346 346
347 if (STAT(buffer, &s)) /* get info */ 347 if (STAT(buffer, &s)) /* get info */
348 { 348 {
349#ifdef EOVERFLOW
349 /* File size larger than 2 GB? */ 350 /* File size larger than 2 GB? */
350 if (errno == EOVERFLOW) 351 if (errno == EOVERFLOW)
351 { 352 {
352 DEBUGF("stat() overflow for %s. Skipping\n", buffer); 353 DEBUGF("stat() overflow for %s. Skipping\n", buffer);
353 goto read_next; 354 goto read_next;
354 } 355 }
356#endif
355 357
356 return NULL; 358 return NULL;
357 } 359 }