From: Tony Hutter Date: Fri, 12 Oct 2018 18:13:34 +0000 (-0700) Subject: Define timestruc_t for Lustre compatibility X-Git-Tag: zfs-0.8.0-rc2~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c94dd7b7b102d398e70670a36ca29a84e31bc46;p=zfs Define timestruc_t for Lustre compatibility Lustre 2.8 (and possibly other versions) are still using timestruc_t, which was removed in spl-0.7.10 in favor of inode_timespec_t. Add in a backwards compatibility #define for timestruc_t so that Lustre builds. Reviewed by: Brian Behlendorf Reviewed-by: George Melikov Signed-off-by: Tony Hutter Closes #8014 --- diff --git a/include/spl/sys/time.h b/include/spl/sys/time.h index 14d3ec2c9..37f5e35df 100644 --- a/include/spl/sys/time.h +++ b/include/spl/sys/time.h @@ -66,6 +66,9 @@ typedef struct timespec64 inode_timespec_t; typedef struct timespec inode_timespec_t; #endif +/* Include for Lustre compatibility */ +#define timestruc_t inode_timespec_t + static inline void gethrestime(inode_timespec_t *ts) {