From 4e8bed2933dea6b6482d2b4b4d23bde4947055f9 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Sun, 12 Jun 2011 12:12:18 +0000 Subject: 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 --- uisimulator/common/io.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'uisimulator') 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; } -- cgit