LINUX 5.6: define time_t and use timespec/timespec64
[openafs.git] / src / afs / LINUX / osi_machdep.h
index 6832c3e..1864cec 100644 (file)
 #include "h/cred.h"
 #endif
 
+#if !defined(HAVE_LINUX_TIME_T)
+typedef time64_t time_t;
+#endif
+
 #if defined(HAVE_LINUX_KTIME_GET_COARSE_REAL_TS64)
 static inline time_t osi_Time(void) {
     struct timespec64 xtime;