diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-05-13 13:19:15 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-05-13 13:19:15 +0400 |
commit | 837e070f314f6b8b9e64ec9fb09dd0e0bf6226e9 (patch) | |
tree | aaf6a56cd542a05fb2fbe88d381e91c951c74933 /newlib/libc/search | |
parent | 878e4ecbe8ae63355c83bed46976c9a7533622ec (diff) |
* libc/locale/ldpart.c (__part_load_locale): Substitute
__CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
* 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.
Diffstat (limited to 'newlib/libc/search')
-rw-r--r-- | newlib/libc/search/hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/search/hash.c b/newlib/libc/search/hash.c index 5429252b1..1b045e83f 100644 --- a/newlib/libc/search/hash.c +++ b/newlib/libc/search/hash.c @@ -129,7 +129,7 @@ __hash_open(file, flags, mode, info, dflags) new_table = 0; if (!file || (flags & O_TRUNC) || -#ifdef __CYGWIN_USE_BIG_TYPES__ +#ifdef __USE_INTERNAL_STAT64 (stat64(file, &statbuf) && (errno == ENOENT))) { #else (stat(file, &statbuf) && (errno == ENOENT))) { @@ -145,7 +145,7 @@ __hash_open(file, flags, mode, info, dflags) /* if the .db file is empty, and we had permission to create a new .db file, then reinitialize the database */ if ((flags & O_CREAT) && -#ifdef __CYGWIN_USE_BIG_TYPES__ +#ifdef __USE_INTERNAL_STAT64 fstat64(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0) #else fstat(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0) @@ -323,7 +323,7 @@ init_hash(hashp, file, info) /* Fix bucket size to be optimal for file system */ if (file != NULL) { -#ifdef __CYGWIN_USE_BIG_TYPES__ +#ifdef __USE_INTERNAL_STAT64 if (stat64(file, &statbuf)) #else if (stat(file, &statbuf)) |