X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafs%2FFBSD%2Fosi_machdep.h;h=d9d39f096a2d966a97be81f39bdec95f6890c595;hp=17baaa6921b79f09af789ef2c47a9f61f5b8a012;hb=eccd4b9778014c36a4b3af6d9e80194066bd2195;hpb=a5c3dfe99fa1831e3b416e89f52a03fd1cf9f73d diff --git a/src/afs/FBSD/osi_machdep.h b/src/afs/FBSD/osi_machdep.h index 17baaa6..d9d39f0 100644 --- a/src/afs/FBSD/osi_machdep.h +++ b/src/afs/FBSD/osi_machdep.h @@ -133,6 +133,13 @@ extern struct thread *afs_global_owner; #define osi_procname(procname, size) strncpy(procname, curproc->p_comm, size) -#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_ */