Skip to content

Commit

Permalink
Define timestruc_t for Lustre compatibility
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Tony Hutter <hutter2@llnl.gov>
  • Loading branch information
tonyhutter committed Sep 19, 2018
1 parent a0013af commit bf00ca6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/sys/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit bf00ca6

Please sign in to comment.