The following commit has been merged in the master branch:
commit a7f77245b75d6813ea8ccf5ae72c7036b45e53c5
Author: Andrew Deason <[email protected]>
Date: Mon May 8 16:25:15 2023 -0500
dumpscan: Include time.h
Various parts of dumpscan use ctime(), time(), etc, but don't include
time.h. This causes errors on AIX when using the clang-based xlc 17.1,
such as:
.../src/tools/dumpscan/parsevol.c:286:35: error: call to undeclared
function 'ctime'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
printf("%s%s", field->label, ctime(&when));
^
Include time.h in these files, so we have declarations for these
functions.
Change-Id: I0247a55952640585ff3b27d2b0e47e09dea531a0
Reviewed-on: https://gerrit.openafs.org/15435
Reviewed-by: Ben Huntsman <[email protected]>
Reviewed-by: Cheyenne Wills <[email protected]>
Reviewed-by: Mark Vitale <[email protected]>
Tested-by: BuildBot <[email protected]>
Reviewed-by: Michael Meffie <[email protected]>
src/tools/dumpscan/backuphdr.c | 1 +
src/tools/dumpscan/dump.c | 2 ++
src/tools/dumpscan/dumptool.c | 1 +
src/tools/dumpscan/parsevnode.c | 1 +
src/tools/dumpscan/parsevol.c | 2 ++
src/tools/dumpscan/repair.c | 1 +
6 files changed, 8 insertions(+)
--
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs