Move sys_readlink() to libreplace.
[gd/samba-autobuild/.git] / lib / replace / replace.c
index 74af75ebf12f4b8fc5c3eafd249aa2d3853fb6bf..00a205d4723deca3e738d7379ec110d1aa561417 100644 (file)
@@ -627,3 +627,18 @@ 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
+
+#ifndef HAVE_READLINK
+int rep_readlink(const char *path, char *buf, size_t bufsiz)
+{
+       errno = ENOSYS;
+       return -1;
+}
+#endif