Skip to content

Commit d58d2f1

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge branch 'kblees/kb/symlinks'
Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 54ad6c6 + 85ac806 commit d58d2f1

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
@@ -120,10 +120,6 @@ struct utsname {
120120
* trivial stubs
121121
*/
122122

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

200198
/*
201199
* replacements of existing functions

0 commit comments

Comments
 (0)