Move sys_symlink() to libreplace.
[abartlet/samba.git/.git] / lib / replace / replace.c
index 00a205d4723deca3e738d7379ec110d1aa561417..37705b93cd6efafda26e216a2735c3369f9dec8f 100644 (file)
@@ -642,3 +642,11 @@ int rep_readlink(const char *path, char *buf, size_t bufsiz)
        return -1;
 }
 #endif
+
+#ifndef HAVE_SYMLINK
+int rep_symlink(const char *oldpath, const char *newpath)
+{
+       errno = ENOSYS;
+       return -1;
+}
+#endif