afs: Always define our own osi_timeval32_t
[openafs.git] / src / afs / DARWIN / osi_machdep.h
index a5e34f0..b360970 100644 (file)
@@ -235,6 +235,13 @@ extern int (**afs_vnodeop_p) ();
 #define osi_procname(procname, size) strncpy(procname, curproc->p_comm, size)
 #endif
 
-#define osi_GetTime(x) microtime(x)
+static_inline void
+osi_GetTime(osi_timeval32_t *atv)
+{
+    struct timeval now;
+    microtime(&now);
+    atv->tv_sec = now.tv_sec;
+    atv->tv_usec = now.tv_usec;
+}
 
 #endif /* _OSI_MACHDEP_H_ */