LINUX: Update to Linux struct iattr->ia_ctime to timespec64 with 4.18
[openafs.git] / src / afs / LINUX / osi_file.c
index 7069297..fd68b16 100644 (file)
 #include "osi_compat.h"
 
 #ifndef CURRENT_TIME
-#define CURRENT_TIME           (current_kernel_time())
+# ifdef IATTR_TAKES_64BIT_TIME
+#  define CURRENT_TIME         (current_kernel_time64())
+# else
+#  define CURRENT_TIME            (current_kernel_time())
+# endif
 #endif
 
 int cache_fh_type = -1;