Skip to content

Commit 63ea38e

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge branch 'kblees/kb/symlinks'
Signed-off-by: Johannes Schindelin <[email protected]>
2 parents be6ceda + 3ea5661 commit 63ea38e

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

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

199197
/*
200198
* replacements of existing functions

0 commit comments

Comments
 (0)