From 655de549a4115c4ebdb18417aeeba4280ad54162 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Wed, 8 Dec 2004 10:35:02 +0000 Subject: [PATCH] update-irix-bhvl-20041208 define BHV_IS_BHVL(x) to 0 for non-CELL cases where BHV_PREPARE is defined. 6.5.20f is "broken" --- src/afs/sysincludes.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/afs/sysincludes.h b/src/afs/sysincludes.h index 445de426b..b0dcf2170 100644 --- a/src/afs/sysincludes.h +++ b/src/afs/sysincludes.h @@ -142,6 +142,12 @@ typedef unsigned short etap_event_t; #include "sys/cmn_err.h" #ifdef AFS_SGI64_ENV #include +/* in 6.5.20f, ksys/behavior.h doesn't bother to define BHV_IS_BHVL, + * but sys/vnode.h uses it in VNODE_TO_FIRST_BHV. It looks like from + * older headers like we want the old behavior, so we fake it. */ +#if defined(BHV_PREPARE) && !defined(CELL_CAPABLE) +#define BHV_IS_BHVL(bhp) (0) +#endif #endif /* AFS_SGI64_ENV */ #include "fs/efs_inode.h" #ifdef AFS_SGI_EFS_IOPS_ENV -- 2.39.5