summaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2009-03-07 14:37:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-07 20:22:13 (GMT)
commitd5e31235f2df3d54930c79f46fb7a7e2394899d0 (patch)
tree9e402d6b7bd63207e64d48faa4156ee798b09884 /compat/mingw.h
parentd0baf91db871fdd129057d7844d17457575698ba (diff)
downloadgit-d5e31235f2df3d54930c79f46fb7a7e2394899d0.zip
git-d5e31235f2df3d54930c79f46fb7a7e2394899d0.tar.gz
git-d5e31235f2df3d54930c79f46fb7a7e2394899d0.tar.bz2
Brown paper bag fix for MinGW 64-bit stat
When overriding the identifier "stat" so that "struct stat" will be substituted with "struct _stati64" everywhere, I tried to fix the calls to the _function_ stat(), too, but I forgot to change the earlier attempt "stat64" to "_stati64" there. So, the stat() calls were overridden by calls to _stati64() instead. Unfortunately, there is a function _stati64() so that I missed that calls to stat() were not actually overridden by calls to mingw_lstat(), but t4200-rerere.sh showed the error. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Acked-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index cb9c4d4..6e24686 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -170,7 +170,7 @@ int mingw_lstat(const char *file_name, struct stat *buf);
int mingw_fstat(int fd, struct stat *buf);
#define fstat mingw_fstat
#define lstat mingw_lstat
-#define stat64(x,y) mingw_lstat(x,y)
+#define _stati64(x,y) mingw_lstat(x,y)
int mingw_utime(const char *file_name, const struct utimbuf *times);
#define utime mingw_utime