aboutsummaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorPetr Kodl <petrkodl@gmail.com>2009-01-24 15:04:39 +0100
committerJunio C Hamano <gitster@pobox.com>2009-03-17 09:21:32 -0700
commit7be401e069758cc36d335241d9b80f9aeebf58c7 (patch)
tree18254a54c1a00473acf544860be31d5f7ca4a9f3 /compat/mingw.h
parentb3debd2b0c091990c420f78e074c0c160498e51d (diff)
downloadgit-7be401e069758cc36d335241d9b80f9aeebf58c7.tar.gz
git-7be401e069758cc36d335241d9b80f9aeebf58c7.tar.xz
MinGW: a hardlink implementation
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 6e2468644..7e52f3607 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -67,8 +67,6 @@ static inline int readlink(const char *path, char *buf, size_t bufsiz)
{ errno = ENOSYS; return -1; }
static inline int symlink(const char *oldpath, const char *newpath)
{ errno = ENOSYS; return -1; }
-static inline int link(const char *oldpath, const char *newpath)
-{ errno = ENOSYS; return -1; }
static inline int fchmod(int fildes, mode_t mode)
{ errno = ENOSYS; return -1; }
static inline int fork(void)
@@ -134,6 +132,7 @@ int getpagesize(void); /* defined in MinGW's libgcc.a */
struct passwd *getpwuid(int uid);
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);
/*
* replacements of existing functions