]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Define timestruc_t for Lustre compatibility
authorTony Hutter <hutter2@llnl.gov>
Fri, 12 Oct 2018 18:13:34 +0000 (11:13 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 12 Oct 2018 18:13:34 +0000 (11:13 -0700)
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 <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #8014

include/spl/sys/time.h

index 14d3ec2c916b8fdd87008519c8ec307eabe489a6..37f5e35df2afcfef199b608f1e2d7c8a60ddbd79 100644 (file)
@@ -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)
 {