[OpenAFS-devel] sun4x_59 patches

Quanah Gibson-Mount quanah@stanford.edu
Mon, 10 Jun 2002 20:46:36 -0700


After build 55 of Solaris 9, hrestime was removed as an accessible kernel 
call.
Solaris 9 also changed some of its declarations for some structs.  I have 
tested this compile with and without "-dynroot -afsdb", both work.

--Quanah

The following are patches to get OpenAFS to compile:

src/afs/SOLARIS/osi_machdep.h (Thanks to Booker Bense for helping me get 
some of the syntax on this function right).

# diff osi_machdep.h osi_machdep.h.orig
42,52d41
< #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
54d42
< #endif

src/afs/afs_osi.h

# diff afs_osi.h afs_osi.h.orig
162c162
< #if defined(AFS_HPUX_ENV) || (!defined(AFS_SUN57_ENV) && 
defined(AFS_SUN57_ENV)) || defined(AFS_LINUX_64BIT_KERNEL) || 
(defined(AFS_SGI61_ENV) && defined(KERNEL) && defined(_K64U64))
---
> #if defined(AFS_HPUX_ENV) || defined(AFS_SUN57_ENV) || 
defined(AFS_LINUX_64BIT_KERNEL) || (defined(AFS_SGI61_ENV) && 
defined(KERNEL) && defined(_K64U64))

src/rx/rx_clock.c
# diff rx_clock.c rx_clock.c.orig
19,21d18
< #ifdef AFS_SUN59_ENV
< #include <sys/time_impl.h>
< #endif

src/rx/rx_event.c
# diff rx_event.c rx_event.c.orig
16,18d15
< #ifdef AFS_SUN59_ENV
< #include <sys/time_impl.h>
< #endif

src/rxkad/rxkad_common.c
# diff rxkad_common.c rxkad_common.c.orig
18,20d17
< #ifdef AFS_SUN59_ENV
< #include <sys/time_impl.h>
< #endif