projects
/
debian
/
gzip
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.6
[debian/gzip]
/
lib
/
stat.c
diff --git
a/lib/stat.c
b/lib/stat.c
index 1fc633eeef035cf6af3c4e0994a1e5f9dc01ed6e..f888130d26339d141f3bc1372658bfc336c70e83 100644
(file)
--- a/
lib/stat.c
+++ b/
lib/stat.c
@@
-1,5
+1,5
@@
/* Work around platform bugs in stat.
/* Work around platform bugs in stat.
- Copyright (C) 2009-201
2
Free Software Foundation, Inc.
+ Copyright (C) 2009-201
3
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-29,6
+29,7
@@
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
# if _GL_WINDOWS_64_BIT_ST_SIZE
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
# if _GL_WINDOWS_64_BIT_ST_SIZE
+# undef stat /* avoid warning on mingw64 with _FILE_OFFSET_BITS=64 */
# define stat _stati64
# define REPLACE_FUNC_STAT_DIR 1
# undef REPLACE_FUNC_STAT_FILE
# define stat _stati64
# define REPLACE_FUNC_STAT_DIR 1
# undef REPLACE_FUNC_STAT_FILE
@@
-41,7
+42,7
@@
# endif
#endif
# endif
#endif
-static in
line in
t
+static int
orig_stat (const char *filename, struct stat *buf)
{
return stat (filename, buf);
orig_stat (const char *filename, struct stat *buf)
{
return stat (filename, buf);