path: root/compat/mingw.h
diff options
Diffstat (limited to 'compat/mingw.h')
1 files changed, 9 insertions, 1 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 48229d5..69b1dde 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -60,7 +60,6 @@ struct itimerval {
#define ITIMER_REAL 0
#define st_blocks st_size/512 /* will be cleaned up later */
-#define lstat stat
* trivial stubs
@@ -160,6 +159,15 @@ int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz);
int mingw_rename(const char*, const char*);
#define rename mingw_rename
+/* Use mingw_lstat() instead of lstat()/stat() and
+ * mingw_fstat() instead of fstat() on Windows.
+ */
+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 stat(x,y) mingw_lstat(x,y)
pid_t mingw_spawnvpe(const char *cmd, const char **argv, char **env);
void mingw_execvp(const char *cmd, char *const *argv);
#define execvp mingw_execvp