aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-12-06 01:32:17 +0000
committerWayne Davison <wayned@samba.org>2006-12-06 01:32:17 +0000
commit1e1ca25343206df0ad8dccaefdae0506c7817532 (patch)
tree57b47481543f0e87e30dd289cfdae2a50468d2b4 /io.c
parenta2ebbffca75efb33a81624c2d7f5644784e0992b (diff)
downloadandroid_external_rsync-1e1ca25343206df0ad8dccaefdae0506c7817532.tar.gz
android_external_rsync-1e1ca25343206df0ad8dccaefdae0506c7817532.tar.bz2
android_external_rsync-1e1ca25343206df0ad8dccaefdae0506c7817532.zip
#ifdef calls to hard-link functions.
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/io.c b/io.c
index 05a755fb..8fe82848 100644
--- a/io.c
+++ b/io.c
@@ -336,8 +336,10 @@ void increment_active_files(int ndx, int itemizing, enum logcode code)
{
/* TODO: tune these limits? */
while (active_filecnt >= (active_bytecnt >= 128*1024 ? 10 : 50)) {
+#ifdef SUPPORT_HARD_LINKS
if (hlink_list.head)
check_for_finished_hlinks(itemizing, code);
+#endif
read_msg_fd();
}
@@ -415,8 +417,10 @@ void send_msg_int(enum msgcode code, int num)
int get_redo_num(int itemizing, enum logcode code)
{
while (1) {
+#ifdef SUPPORT_HARD_LINKS
if (hlink_list.head)
check_for_finished_hlinks(itemizing, code);
+#endif
if (redo_list.head)
break;
read_msg_fd();