Made hard_link_check() compile when SUPPORT_HARD_LINKS isn't enabled.
authorWayne Davison <wayned@samba.org>
Mon, 12 Jul 2004 07:03:28 +0000 (07:03 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 12 Jul 2004 07:03:28 +0000 (07:03 +0000)
hlink.c

diff --git a/hlink.c b/hlink.c
index 4228b73..1a489c2 100644 (file)
--- a/hlink.c
+++ b/hlink.c
@@ -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;
 }