diff options
author | Wayne Davison <wayned@samba.org> | 2009-09-02 08:53:40 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2009-09-02 08:53:40 -0700 |
commit | 8e15bd87dddf044f29f21de5e52289b1796c2760 (patch) | |
tree | d8c95884e5a179d360febbaac271c158d312cc83 /syscall.c | |
parent | 4a440e4be84ea63535bd918a4b103467118d1965 (diff) | |
download | rsync-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |