diff options
Diffstat (limited to 'newlib/libc/locale')
-rw-r--r-- | newlib/libc/locale/ldpart.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/locale/ldpart.c b/newlib/libc/locale/ldpart.c index 1721f7bb6..bdeea87f9 100644 --- a/newlib/libc/locale/ldpart.c +++ b/newlib/libc/locale/ldpart.c @@ -98,7 +98,11 @@ __part_load_locale(const char *name, fd = open(filename, O_RDONLY); if (fd < 0) goto no_locale; +#ifdef __CYGWIN_USE_BIG_TYPES__ + if (fstat64(fd, &st) != 0) +#else if (fstat(fd, &st) != 0) +#endif goto bad_locale; if (st.st_size <= 0) goto bad_locale; |