aboutsummaryrefslogtreecommitdiff
path: root/include/mingw.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mingw.h')
-rw-r--r--include/mingw.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 49e792b69..c4849215b 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -471,7 +471,6 @@ NOIMPL(setuid,uid_t gid UNUSED_PARAM);
471NOIMPL(seteuid,uid_t gid UNUSED_PARAM); 471NOIMPL(seteuid,uid_t gid UNUSED_PARAM);
472unsigned int sleep(unsigned int seconds); 472unsigned int sleep(unsigned int seconds);
473int symlink(const char *target, const char *linkpath); 473int symlink(const char *target, const char *linkpath);
474static inline void sync(void) { sleep(2); }
475long sysconf(int name); 474long sysconf(int name);
476IMPL(getpagesize,int,4096,void); 475IMPL(getpagesize,int,4096,void);
477NOIMPL(ttyname_r,int fd UNUSED_PARAM, char *buf UNUSED_PARAM, int sz UNUSED_PARAM); 476NOIMPL(ttyname_r,int fd UNUSED_PARAM, char *buf UNUSED_PARAM, int sz UNUSED_PARAM);
@@ -479,6 +478,7 @@ int mingw_unlink(const char *pathname);
479pid_t vfork(void); 478pid_t vfork(void);
480int mingw_access(const char *name, int mode); 479int mingw_access(const char *name, int mode);
481int mingw_rmdir(const char *name); 480int mingw_rmdir(const char *name);
481void mingw_sync(void);
482int mingw_isatty(int fd); 482int mingw_isatty(int fd);
483 483
484#define dup2 mingw_dup2 484#define dup2 mingw_dup2
@@ -488,6 +488,7 @@ int mingw_isatty(int fd);
488#define close mingw_close 488#define close mingw_close
489#define unlink mingw_unlink 489#define unlink mingw_unlink
490#define rmdir mingw_rmdir 490#define rmdir mingw_rmdir
491#define sync mingw_sync
491#undef lseek 492#undef lseek
492#define lseek mingw_lseek 493#define lseek mingw_lseek
493 494