]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
solaris-9-support-20020611
authorQuanah Gibson-Mount <quanah@stanford.edu>
Wed, 12 Jun 2002 01:03:17 +0000 (01:03 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 12 Jun 2002 01:03:17 +0000 (01:03 +0000)
update hrestime interface

src/afs/SOLARIS/osi_machdep.h
src/rx/rx_clock.c
src/rx/rx_event.c
src/rxkad/rxkad_common.c

index ef27ae5169e33d7357e3518ec2683983cb4ccf78..0f71fa02b3fb419df9396a15dc4ff9486c7f79e6 100644 (file)
  * Time related macros
  */
 #define        afs_hz      hz
+#ifdef AFS_SUN59_ENV
+#define osi_Time() local_osi_Time()
+extern void gethrestime(timespec_t *);
+static int
+local_osi_Time()
+{
+   timespec_t start;
+   gethrestime(&start);
+   return start.tv_sec;
+}
+#else
 #define osi_Time() (hrestime.tv_sec)
+#endif
 
 #undef afs_osi_Alloc_NoSleep
 extern void *afs_osi_Alloc_NoSleep(size_t size);
index a37fc6ee18051a7806430bf02c1f4b666da0e8c4..7d6088490a2a83e4aadd63700eceacc617ad7c0c 100644 (file)
 #endif
 #include <afsconfig.h>
 
+#ifdef AFS_SUN59_ENV
+#include <sys/time_impl.h>
+#endif
+
 RCSID("$Header$");
 
 #ifdef KERNEL
index fd83ee1046b6bea08a826ad992c3d6d319380a63..f117b12b860ebeaf4d0d0556aeef270c7829c165 100644 (file)
 #include <afs/param.h>
 #endif
 
+#ifdef AFS_SUN59_ENV
+#include <sys/time_impl.h>
+#endif
+
 RCSID("$Header$");
 
 #ifdef KERNEL
index 7f7aab4b8cd1a92808fdd9ee2e524d29071cb0d6..6d24c0ff4fbb75282690d682fd8df3f79440bc1f 100644 (file)
 #include <afs/param.h>
 #endif
 
+#ifdef AFS_SUN59_ENV
+#include <sys/time_impl.h>
+#endif
+
 RCSID("$Header$");
 
 #ifdef KERNEL