aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 138275588..fd0b09b15 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -234,19 +234,20 @@ typedef int nlink_t;
234NOIMPL(fchmod,int fildes UNUSED_PARAM, mode_t mode UNUSED_PARAM); 234NOIMPL(fchmod,int fildes UNUSED_PARAM, mode_t mode UNUSED_PARAM);
235NOIMPL(fchown,int fd UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM); 235NOIMPL(fchown,int fd UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM);
236int mingw_mkdir(const char *path, int mode); 236int mingw_mkdir(const char *path, int mode);
237#define mkdir mingw_mkdir
237 238
238/* Use mingw_lstat() instead of lstat()/stat() and 239/* Use mingw_lstat()/mingw_stat() instead of lstat()/stat() and
239 * mingw_fstat() instead of fstat() on Windows. 240 * mingw_fstat() instead of fstat() on Windows.
240 */ 241 */
242#define off_t off64_t
243#define lseek _lseeki64
244#define stat _stati64
241int mingw_lstat(const char *file_name, struct stat *buf); 245int mingw_lstat(const char *file_name, struct stat *buf);
246int mingw_stat(const char *file_name, struct stat *buf);
242int mingw_fstat(int fd, struct stat *buf); 247int mingw_fstat(int fd, struct stat *buf);
243
244#define mkdir mingw_mkdir
245#define stat(x,y) mingw_lstat(x,y)
246#define lseek _lseeki64
247#define fstat mingw_fstat 248#define fstat mingw_fstat
248#define lstat mingw_lstat 249#define lstat mingw_lstat
249#define _stati64 mingw_lstat 250#define _stati64(x,y) mingw_stat(x,y)
250 251
251/* 252/*
252 * sys/sysmacros.h 253 * sys/sysmacros.h