From: Theodore Ts'o Date: Sun, 11 Apr 2021 23:52:57 +0000 (-0400) Subject: blkid: include time.h to provide explicit declaration for time() X-Git-Tag: v1.46.3~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32fda1e5a338ff676ae7f7e3e2bc256e7a7e2855;p=thirdparty%2Fe2fsprogs.git 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 --- 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