diff --git a/src/afs/IRIX/osi_vcache.c b/src/afs/IRIX/osi_vcache.c index 79837c66dc..a34c9b9cb8 100644 --- a/src/afs/IRIX/osi_vcache.c +++ b/src/afs/IRIX/osi_vcache.c @@ -15,6 +15,7 @@ int osi_TryEvictVCache(struct vcache *avc, int *slept) { + int code; if (!VREFCOUNT_GT(avc,0) && avc->opens == 0 && (avc->f.states & CUnlinkedDel) == 0) { code = afs_FlushVCache(avc, slept); @@ -24,6 +25,8 @@ osi_TryEvictVCache(struct vcache *avc, int *slept) { return 0; } +extern char *makesname(); + struct vcache * osi_NewVnode(void) { struct vcache *avc; @@ -88,7 +91,6 @@ osi_PostPopulateVCache(struct vcache *avc) { AFS_VN_INIT_BUF_LOCK(&(avc->v)); #endif - avc->v.v_type = afs_globalVFS; vSetType(avc, VREG); VN_SET_DPAGES(&(avc->v), (struct pfdat *)NULL); diff --git a/src/afsd/afsd_kernel.c b/src/afsd/afsd_kernel.c index f4d85b2c54..c5c457ed86 100644 --- a/src/afsd/afsd_kernel.c +++ b/src/afsd/afsd_kernel.c @@ -112,6 +112,7 @@ kern_return_t DiskArbDiskAppearedWithMountpointPing_auto(char *, unsigned int, #endif /* MOUNT_AFS */ #ifdef AFS_SGI65_ENV +# include # define SET_RTPRI(P) { \ struct sched_param sp; \ sp.sched_priority = P; \