diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-05-12 15:09:39 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-05-12 15:09:39 +0400 |
commit | 11e3a52072b7ccc02ddbf518ea70a3d8a0909069 (patch) | |
tree | 0ea9a65302d2bfe65a79c0f2b09613a9d6292880 /newlib/libc/locale/ldpart.c | |
parent | 194d9eb318403b1618c3f77eba6de4e17b7c900d (diff) |
* 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.
Diffstat (limited to 'newlib/libc/locale/ldpart.c')
-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; |