mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
Fix UKERNEL build error - include afs/afs_osi.h
Commit d0f2ffca
breaks the build on my system because
afs/afs_osi.h no longer gets included for the UKERNEL + !KERNEL
case. This causes many errors as a result of missing definitions
such as afs_kmutex_t.
Pull out this include into a separate ifdef based only on "KERNEL".
Change-Id: Idafa7702550eb8cb2c7693f4173e482b15702d7e
Reviewed-on: http://gerrit.openafs.org/1733
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
6de3486c2c
commit
dc915673f2
@ -42,6 +42,9 @@ struct clock {
|
||||
afs_int32 usec; /* Microseconds since clock_Init */
|
||||
};
|
||||
|
||||
#if defined(KERNEL)
|
||||
#include "afs/afs_osi.h"
|
||||
#endif
|
||||
#if !defined(KERNEL) || defined(UKERNEL)
|
||||
#if defined(AFS_USE_GETTIMEOFDAY) || defined(AFS_PTHREAD_ENV) || defined(UKERNEL)
|
||||
#define clock_Init()
|
||||
@ -85,7 +88,6 @@ extern int clock_nUpdates;
|
||||
#define clock_Sec() ((!clock_haveCurrentTime)? clock_UpdateTime(), clock_now.sec:clock_now.sec)
|
||||
#endif /* AFS_USE_GETTIMEOFDAY || AFS_PTHREAD_ENV */
|
||||
#else /* KERNEL */
|
||||
#include "afs/afs_osi.h"
|
||||
#define clock_Init()
|
||||
#if defined(AFS_SGI61_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_LINUX_64BIT_KERNEL)
|
||||
#define clock_GetTime(cv) osi_GetTime((osi_timeval_t *)cv)
|
||||
|
Loading…
Reference in New Issue
Block a user