summaryrefslogtreecommitdiff
path: root/lib/replace/replace.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/replace.c')
-rw-r--r--lib/replace/replace.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c
index 74af75ebf1..adf7932107 100644
--- a/lib/replace/replace.c
+++ b/lib/replace/replace.c
@@ -627,3 +627,11 @@ int rep_chown(const char *fname, uid_t uid, gid_t gid)
}
#endif
+#ifndef HAVE_LINK
+int rep_link(const char *oldpath, const char *newpath)
+{
+ errno = ENOSYS;
+ return -1;
+}
+#endif
+