aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h
index ba73c362e..a828bd835 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -207,8 +207,18 @@ NOIMPL(fchmod,int fildes UNUSED_PARAM, mode_t mode UNUSED_PARAM);
207NOIMPL(fchown,int fd UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM); 207NOIMPL(fchown,int fd UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM);
208int mingw_mkdir(const char *path, int mode); 208int mingw_mkdir(const char *path, int mode);
209 209
210/* Use mingw_lstat() instead of lstat()/stat() and
211 * mingw_fstat() instead of fstat() on Windows.
212 */
213int mingw_lstat(const char *file_name, struct stat *buf);
214int mingw_fstat(int fd, struct stat *buf);
215
210#define mkdir mingw_mkdir 216#define mkdir mingw_mkdir
211#define lstat stat 217#define stat(x,y) mingw_lstat(x,y)
218#define lseek _lseeki64
219#define fstat mingw_fstat
220#define lstat mingw_lstat
221#define _stati64 mingw_lstat
212 222
213/* 223/*
214 * sys/sysmacros.h 224 * sys/sysmacros.h