1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Tony Hutter <hutter2@llnl.gov>
3 Date: Fri, 26 Oct 2018 01:24:24 -0400
4 Subject: [PATCH] Define timestruc_t for Lustre compatibility
6 Lustre 2.8 (and possibly other versions) are still using timestruc_t,
7 which was removed in spl-0.7.10 in favor of inode_timespec_t. Add
8 in a backwards compatibility #define for timestruc_t so that Lustre
11 Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
12 Reviewed-by: George Melikov <mail@gmelikov.ru>
13 Signed-off-by: Tony Hutter <hutter2@llnl.gov>
16 Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
18 include/sys/time.h | 3 +++
19 1 file changed, 3 insertions(+)
21 diff --git a/include/sys/time.h b/include/sys/time.h
22 index 59557af..9029671 100644
23 --- a/include/sys/time.h
24 +++ b/include/sys/time.h
25 @@ -66,6 +66,9 @@ typedef struct timespec64 inode_timespec_t;
26 typedef struct timespec inode_timespec_t;
29 +/* Include for Lustre compatibility */
30 +#define timestruc_t inode_timespec_t
33 gethrestime(inode_timespec_t *ts)