aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/makebuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/makebuf.c')
-rw-r--r--newlib/libc/stdio/makebuf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/stdio/makebuf.c b/newlib/libc/stdio/makebuf.c
index 4a09c4d..afb1e2d 100644
--- a/newlib/libc/stdio/makebuf.c
+++ b/newlib/libc/stdio/makebuf.c
@@ -47,7 +47,11 @@ __smakebuf (fp)
fp->_bf._size = 1;
return;
}
+#ifdef __CYGWIN_USE_BIG_TYPES__
+ if (fp->_file < 0 || _fstat64_r (fp->_data, fp->_file, &st) < 0)
+#else
if (fp->_file < 0 || _fstat_r (fp->_data, fp->_file, &st) < 0)
+#endif
{
couldbetty = 0;
size = BUFSIZ;