Skip to content

Commit 1f48582

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge branch 'kblees/kb/symlinks'
Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 5076302 + 5992853 commit 1f48582

File tree

8 files changed

+530
-169
lines changed

8 files changed

+530
-169
lines changed

compat/mingw-posix.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ struct utsname {
121121
* trivial stubs
122122
*/
123123

124-
static inline int readlink(const char *path UNUSED, char *buf UNUSED, size_t bufsiz UNUSED)
125-
{ errno = ENOSYS; return -1; }
126-
static inline int symlink(const char *oldpath UNUSED, const char *newpath UNUSED)
127-
{ errno = ENOSYS; return -1; }
128124
static inline int fchmod(int fildes UNUSED, mode_t mode UNUSED)
129125
{ errno = ENOSYS; return -1; }
130126
#ifndef __MINGW64_VERSION_MAJOR
@@ -197,6 +193,8 @@ int setitimer(int type, struct itimerval *in, struct itimerval *out);
197193
int sigaction(int sig, struct sigaction *in, struct sigaction *out);
198194
int link(const char *oldpath, const char *newpath);
199195
int uname(struct utsname *buf);
196+
int symlink(const char *target, const char *link);
197+
int readlink(const char *path, char *buf, size_t bufsiz);
200198

201199
/*
202200
* replacements of existing functions

0 commit comments

Comments
 (0)