From 435e4675f3ef262f897ba17548402e337365e687 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Tue, 22 Dec 2009 21:46:43 +0000 Subject: [PATCH] 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 Tested-by: Derrick Brashear (cherry picked from commit 2c0a9ab3c361ade9218c2f458d86165de8eadc76) Change-Id: Id02601f081bc2cd6e42358422a175c842041ad08 Reviewed-on: http://gerrit.openafs.org/4032 Tested-by: BuildBot Reviewed-by: Derrick Brashear Reviewed-on: http://gerrit.openafs.org/4036 Tested-by: Derrick Brashear --- src/afs/SOLARIS/osi_sleep.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/afs/SOLARIS/osi_sleep.c b/src/afs/SOLARIS/osi_sleep.c index a219d7828f..bf62279532 100644 --- a/src/afs/SOLARIS/osi_sleep.c +++ b/src/afs/SOLARIS/osi_sleep.c @@ -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);