Move sys_symlink() to libreplace.
[ira/wip.git] / lib / replace / replace.c
index adf79321073a1a86a36ae04c5a61ffcc25d3bc37..37705b93cd6efafda26e216a2735c3369f9dec8f 100644 (file)
@@ -635,3 +635,18 @@ int rep_link(const char *oldpath, const char *newpath)
 }
 #endif
 
+#ifndef HAVE_READLINK
+int rep_readlink(const char *path, char *buf, size_t bufsiz)
+{
+       errno = ENOSYS;
+       return -1;
+}
+#endif
+
+#ifndef HAVE_SYMLINK
+int rep_symlink(const char *oldpath, const char *newpath)
+{
+       errno = ENOSYS;
+       return -1;
+}
+#endif