diff options
author | Theodore Ts'o <tytso@mit.edu> | 2021-04-11 19:52:57 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-04-11 19:52:57 -0400 |
commit | 32fda1e5a338ff676ae7f7e3e2bc256e7a7e2855 (patch) | |
tree | 782ce7d2ce33bad3c3b1963320289085ff35b93f | |
parent | 612358c193cee465de99000c009a84a4cf371f9a (diff) | |
download | e2fsprogs-32fda1e5a338ff676ae7f7e3e2bc256e7a7e2855.tar.gz |
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 <ryandesign@macports.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | e2fsck/problem.c | 2 | ||||
-rw-r--r-- | lib/blkid/probe.c | 1 |
2 files changed, 2 insertions, 1 deletions
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 <stdio.h> #include <string.h> #include <stdlib.h> +#include <time.h> #include <unistd.h> #include <fcntl.h> #include <ctype.h> |