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; }