mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
Make osi_GetTime work on 64-bit libuafs
libuafs was previously using an implementation of osi_GetTime (and thus clock_GetTime) that required 32-bit time_t's to work properly. Instead, just use the non-kernel osi_GetTime for UKERNEL, since we're just in userspace either way. Change-Id: I4f2d060f7e2aaeaaa3fe164aca6bee5333de4583 Reviewed-on: http://gerrit.openafs.org/1714 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
d29a2443f0
commit
d0f2ffcaa3
@ -42,8 +42,8 @@ struct clock {
|
||||
afs_int32 usec; /* Microseconds since clock_Init */
|
||||
};
|
||||
|
||||
#ifndef KERNEL
|
||||
#if defined(AFS_USE_GETTIMEOFDAY) || defined(AFS_PTHREAD_ENV)
|
||||
#if !defined(KERNEL) || defined(UKERNEL)
|
||||
#if defined(AFS_USE_GETTIMEOFDAY) || defined(AFS_PTHREAD_ENV) || defined(UKERNEL)
|
||||
#define clock_Init()
|
||||
#define clock_NewTime()
|
||||
#define clock_UpdateTime()
|
||||
|
@ -12,11 +12,9 @@
|
||||
#if defined(AFS_NT40_ENV)
|
||||
#include "rx_xmit_nt.h"
|
||||
#endif
|
||||
#ifndef UKERNEL
|
||||
#ifndef AFS_NT40_ENV
|
||||
#include <sys/uio.h>
|
||||
#endif /* !AFS_NT40_ENV */
|
||||
#endif /* !UKERNEL */
|
||||
/* this file includes the macros and decls which depend on packet
|
||||
* format, and related packet manipulation macros. Note that code
|
||||
* which runs at NETPRI should not sleep, or AIX will panic */
|
||||
|
Loading…
Reference in New Issue
Block a user