diff options
Diffstat (limited to 'compat/mingw-posix.h')
| -rw-r--r-- | compat/mingw-posix.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/compat/mingw-posix.h b/compat/mingw-posix.h index 631a208684..2d989fd762 100644 --- a/compat/mingw-posix.h +++ b/compat/mingw-posix.h @@ -121,10 +121,6 @@ struct utsname { * trivial stubs */ -static inline int readlink(const char *path UNUSED, char *buf UNUSED, size_t bufsiz UNUSED) -{ errno = ENOSYS; return -1; } -static inline int symlink(const char *oldpath UNUSED, const char *newpath UNUSED) -{ errno = ENOSYS; return -1; } static inline int fchmod(int fildes UNUSED, mode_t mode UNUSED) { errno = ENOSYS; return -1; } #ifndef __MINGW64_VERSION_MAJOR @@ -197,6 +193,8 @@ int setitimer(int type, struct itimerval *in, struct itimerval *out); int sigaction(int sig, struct sigaction *in, struct sigaction *out); int link(const char *oldpath, const char *newpath); int uname(struct utsname *buf); +int symlink(const char *target, const char *link); +int readlink(const char *path, char *buf, size_t bufsiz); /* * replacements of existing functions @@ -241,9 +239,6 @@ int mingw_chdir(const char *dirname); int mingw_chmod(const char *filename, int mode); #define chmod mingw_chmod -char *mingw_mktemp(char *template); -#define mktemp mingw_mktemp - char *mingw_getcwd(char *pointer, int len); #define getcwd mingw_getcwd |
