git: 3ef2e7e27925 - stable/13 - Merge fix for zfs readmmap test from CheriBSD

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Tue, 19 Jul 2022 18:02:25 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=3ef2e7e27925747f5b9d0943a496f50875bc6610

commit 3ef2e7e27925747f5b9d0943a496f50875bc6610
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-15 19:10:09 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-19 17:59:44 +0000

    Merge fix for zfs readmmap test from CheriBSD
    
    Merge commit 1737d8397a0 by Brooks Davis:
    
      time() is declared in time.h
    
    This fixes a -Werror warning from clang 15:
    
      tests/sys/cddl/zfs/bin/readmmap.c:97:9: error: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    
    Obtained from:  https://github.com/CTSRD-CHERI/cheribsd/commit/1737d8397a0
    MFC after:      3 days
    
    (cherry picked from commit 47be48457393ba6747cc3144272b1f4d8b9077fb)
---
 tests/sys/cddl/zfs/bin/readmmap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/sys/cddl/zfs/bin/readmmap.c b/tests/sys/cddl/zfs/bin/readmmap.c
index d2dd5605351d..c21697798285 100644
--- a/tests/sys/cddl/zfs/bin/readmmap.c
+++ b/tests/sys/cddl/zfs/bin/readmmap.c
@@ -43,6 +43,7 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
+#include <time.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <errno.h>