From 2c0a9ab3c361ade9218c2f458d86165de8eadc76 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. Change-Id: I7a72bab14b0226fb25adb642f3621512e02ca216 Reviewed-on: http://gerrit.openafs.org/1022 Reviewed-by: Derrick Brashear 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 a219d7828..bf6227953 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); -- 2.39.5