mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
Solaris: Don't access lbolt directly
Recent changes in OpenSolaris have removed the 'lbolt' variable.
However, the ddi_get_lbolt accessor (which has been present since
Solaris 10) can be used to get access to the same value. So, use it.
Reviewed-on: http://gerrit.openafs.org/1022
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 2c0a9ab3c3
)
Change-Id: Id02601f081bc2cd6e42358422a175c842041ad08
Reviewed-on: http://gerrit.openafs.org/4032
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-on: http://gerrit.openafs.org/4036
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
f420acc249
commit
435e4675f3
@ -176,7 +176,11 @@ osi_TimedSleep(char *event, afs_int32 ams, int aintok)
|
||||
clock_t ticks;
|
||||
|
||||
ticks = (ams * afs_hz) / 1000;
|
||||
#if defined(AFS_SUN510_ENV)
|
||||
ticks = ticks + ddi_get_lbolt();
|
||||
#else
|
||||
ticks = ticks + lbolt;
|
||||
#endif
|
||||
|
||||
evp = afs_getevent(event);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user