mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-20 12:54:15 -04:00
Made hard_link_check() compile when SUPPORT_HARD_LINKS isn't enabled.
This commit is contained in:
1 parent
a04d77bcbc
commit
bb91a624f1
1 file changed
+2
@@ -135,6 +135,7 @@ void init_hard_links(struct file_list *flist)
|
||||
|
||||
int hard_link_check(struct file_struct *file, int skip)
|
||||
{
|
||||
#if SUPPORT_HARD_LINKS
|
||||
if (!hlink_list || !file->link_u.links)
|
||||
return 0;
|
||||
if (skip && !(file->flags & FLAG_HLINK_EOL))
|
||||
@@ -146,6 +147,7 @@ int hard_link_check(struct file_struct *file, int skip)
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user