]> git.ipfire.org Git - thirdparty/git.git/blobdiff - compat/mingw.h
MinGW: fix stat() and lstat() implementations for handling symlinks
[thirdparty/git.git] / compat / mingw.h
index 74c799ad38600a8334ab8f922e0a7dd8ed80b45d..47839663be4d1e861c90b0228b89385004dd5fb4 100644 (file)
@@ -235,10 +235,11 @@ int mingw_getpagesize(void);
 #ifndef ALREADY_DECLARED_STAT_FUNCS
 #define stat _stati64
 int mingw_lstat(const char *file_name, struct stat *buf);
+int mingw_stat(const char *file_name, struct stat *buf);
 int mingw_fstat(int fd, struct stat *buf);
 #define fstat mingw_fstat
 #define lstat mingw_lstat
-#define _stati64(x,y) mingw_lstat(x,y)
+#define _stati64(x,y) mingw_stat(x,y)
 #endif
 
 int mingw_utime(const char *file_name, const struct utimbuf *times);