From 11e3a52072b7ccc02ddbf518ea70a3d8a0909069 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 12 May 2003 11:09:39 +0000 Subject: * configure.host: Accomodate removing the libc/sys/cygwin dir. * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call if __CYGWIN_USE_BIG_TYPES__ is set. * libc/search/hash.c (__hash_open): Ditto. (init_hash): Ditto. * libc/stdio/fseek.c (fseek): Ditto. * libc/stdio/makebuf.c (__smakebuf): Ditto. * libc/stdio/mktemp.c (_gettemp): Ditto. * libc/sys/cygwin/Makefile.am: Remove. * libc/sys/cygwin/Makefile.in: Remove. * libc/sys/cygwin/aclocal.m4: Remove. * libc/sys/cygwin/configure: Remove. * libc/sys/cygwin/configure.in: Remove. * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory. * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys directory. * libc/sys/cygwin/sys/param.h: Ditto. * libc/sys/cygwin/sys/utime.h: Ditto. * libc/sys/cygwin/sys/utmp.h: Ditto. --- newlib/libc/stdio/makebuf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'newlib/libc/stdio/makebuf.c') diff --git a/newlib/libc/stdio/makebuf.c b/newlib/libc/stdio/makebuf.c index 4a09c4d50..afb1e2d82 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; -- cgit v1.2.3