diff options
-rw-r--r-- | apps/tagcache.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index be4686679b..dfab06da20 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -82,9 +82,7 @@ | |||
82 | #include "pathfuncs.h" | 82 | #include "pathfuncs.h" |
83 | #include "structec.h" | 83 | #include "structec.h" |
84 | #include "debug.h" | 84 | #include "debug.h" |
85 | #ifdef HAVE_DIRCACHE | ||
86 | #include "dircache.h" | 85 | #include "dircache.h" |
87 | #endif | ||
88 | 86 | ||
89 | #ifndef __PCTOOL__ | 87 | #ifndef __PCTOOL__ |
90 | #include "lang.h" | 88 | #include "lang.h" |
@@ -768,7 +766,7 @@ static bool open_files(struct tagcache_search *tcs, int tag) | |||
768 | return true; | 766 | return true; |
769 | } | 767 | } |
770 | 768 | ||
771 | static bool retrieve(struct tagcache_search *tcs, int idx_id, | 769 | static bool retrieve(struct tagcache_search *tcs, IF_DIRCACHE(int idx_id,) |
772 | struct index_entry *idx, int tag, char *buf, long size) | 770 | struct index_entry *idx, int tag, char *buf, long size) |
773 | { | 771 | { |
774 | struct tagfile_entry tfe; | 772 | struct tagfile_entry tfe; |
@@ -1087,8 +1085,8 @@ static bool check_clauses(struct tagcache_search *tcs, | |||
1087 | if (clause->tag == tag_filename | 1085 | if (clause->tag == tag_filename |
1088 | || clause->tag == tag_virt_basename) | 1086 | || clause->tag == tag_virt_basename) |
1089 | { | 1087 | { |
1090 | retrieve(tcs, tcs->idx_id, idx, tag_filename, buf, | 1088 | retrieve(tcs, IF_DIRCACHE(tcs->idx_id,) idx, tag_filename, |
1091 | sizeof buf); | 1089 | buf, sizeof buf); |
1092 | } | 1090 | } |
1093 | else | 1091 | else |
1094 | { | 1092 | { |
@@ -1661,7 +1659,7 @@ bool tagcache_retrieve(struct tagcache_search *tcs, int idxid, | |||
1661 | if (!get_index(tcs->masterfd, idxid, &idx, true)) | 1659 | if (!get_index(tcs->masterfd, idxid, &idx, true)) |
1662 | return false; | 1660 | return false; |
1663 | 1661 | ||
1664 | return retrieve(tcs, idxid, &idx, tag, buf, size); | 1662 | return retrieve(tcs, IF_DIRCACHE(idxid,) &idx, tag, buf, size); |
1665 | } | 1663 | } |
1666 | 1664 | ||
1667 | static bool update_master_header(void) | 1665 | static bool update_master_header(void) |