Skip to content

Commit c33adf9

Browse files
dschoGit for Windows Build Agent
authored andcommitted
fixup??? Win32: implement basic symlink() functionality (file symlinks only)
Yet another `git rerere` omission. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent a043bcc commit c33adf9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compat/mingw-posix.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ struct utsname {
120120
* trivial stubs
121121
*/
122122

123-
static inline int symlink(const char *oldpath UNUSED, const char *newpath UNUSED)
124-
{ errno = ENOSYS; return -1; }
125123
static inline int fchmod(int fildes UNUSED, mode_t mode UNUSED)
126124
{ errno = ENOSYS; return -1; }
127125
#ifndef __MINGW64_VERSION_MAJOR
@@ -194,6 +192,7 @@ int setitimer(int type, struct itimerval *in, struct itimerval *out);
194192
int sigaction(int sig, struct sigaction *in, struct sigaction *out);
195193
int link(const char *oldpath, const char *newpath);
196194
int uname(struct utsname *buf);
195+
int symlink(const char *target, const char *link);
197196
int readlink(const char *path, char *buf, size_t bufsiz);
198197

199198
/*

0 commit comments

Comments
 (0)