From 32fda1e5a338ff676ae7f7e3e2bc256e7a7e2855 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 11 Apr 2021 19:52:57 -0400 Subject: [PATCH] blkid: include time.h to provide explicit declaration for time() This was originally reported to the MacPorts of e2fsprogs at: https://github.com/macports/macports-ports/pull/9137 Reported-by: Ryan Schmidt Signed-off-by: Theodore Ts'o --- e2fsck/problem.c | 2 +- lib/blkid/probe.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/e2fsck/problem.c b/e2fsck/problem.c index eb2824f31..757b5d564 100644 --- a/e2fsck/problem.c +++ b/e2fsck/problem.c @@ -379,7 +379,7 @@ static struct e2fsck_problem problem_table[] = { /* group descriptor N checksum is invalid, should be yyyy. */ { PR_0_GDT_CSUM, N_("@g descriptor %g checksum is %04x, should be %04y. "), - PROMPT_FIX, PR_LATCH_BG_CHECKSUM, 0, 0, 0 }, + PROMPT_FIX, PR_PREEN_OK | PR_LATCH_BG_CHECKSUM, 0, 0, 0 }, /* group descriptor N marked uninitialized without feature set. */ { PR_0_GDT_UNINIT, diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c index f8687cdeb..b8b6558e3 100644 --- a/lib/blkid/probe.c +++ b/lib/blkid/probe.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include -- 2.47.2