summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-09-02 08:53:40 -0700
committerWayne Davison <wayned@samba.org>2009-09-02 08:53:40 -0700
commit8e15bd87dddf044f29f21de5e52289b1796c2760 (patch)
treed8c95884e5a179d360febbaac271c158d312cc83 /syscall.c
parent4a440e4be84ea63535bd918a4b103467118d1965 (diff)
downloadrsync-8e15bd87dddf044f29f21de5e52289b1796c2760.tar.gz
rsync-8e15bd87dddf044f29f21de5e52289b1796c2760.tar.bz2
rsync-8e15bd87dddf044f29f21de5e52289b1796c2760.zip
Better compiling if SUPPORT_LINKS is not defined.
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/syscall.c b/syscall.c
index cfabc3eb..2d704a89 100644
--- a/syscall.c
+++ b/syscall.c
@@ -53,12 +53,14 @@ int do_unlink(const char *fname)
return unlink(fname);
}
-int do_symlink(const char *fname1, const char *fname2)
+#ifdef SUPPORT_LINKS
+int do_symlink(const char *lnk, const char *fname)
{
if (dry_run) return 0;
RETURN_ERROR_IF_RO_OR_LO;
- return symlink(fname1, fname2);
+ return symlink(lnk, fname);
}
+#endif
#ifdef HAVE_LINK
int do_link(const char *fname1, const char *fname2)