Many files:
Place #ifdef RESOURCE_TRACK around code which uses init_resource_track
and print_resource_track. (Not all systems have timeval)
diff --git a/e2fsck/pass5.c b/e2fsck/pass5.c
index 499c92c..be2edd9 100644
--- a/e2fsck/pass5.c
+++ b/e2fsck/pass5.c
@@ -20,14 +20,18 @@
void pass5(e2fsck_t ctx)
{
+#ifdef RESOURCE_TRACK
struct resource_track rtrack;
+#endif
struct problem_context pctx;
#ifdef MTRACE
mtrace_print("Pass 5");
#endif
+#ifdef RESOURCE_TRACK
init_resource_track(&rtrack);
+#endif
clear_problem_context(&pctx);
@@ -48,8 +52,10 @@
ext2fs_free_block_bitmap(ctx->block_found_map);
ctx->block_found_map = 0;
+#ifdef RESOURCE_TRACK
if (ctx->options & E2F_OPT_TIME2)
print_resource_track("Pass 5", &rtrack);
+#endif
}
static void check_block_bitmaps(e2fsck_t ctx)