aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTony Hutter <[email protected]>2018-10-12 11:13:34 -0700
committerBrian Behlendorf <[email protected]>2018-10-12 11:13:34 -0700
commit3c94dd7b7b102d398e70670a36ca29a84e31bc46 (patch)
treec30494fbd9b3c55b76847012bb9517f57725cc8d /include
parent5d43cc9a59d61aea37a1236e9d28628856030947 (diff)
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 <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Tony Hutter <[email protected]> Closes #8014
Diffstat (limited to 'include')
-rw-r--r--include/spl/sys/time.h3
1 files changed, 3 insertions, 0 deletions
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)
{