update-irix-bhvl-20041208
authorDerrick Brashear <shadow@dementia.org>
Wed, 8 Dec 2004 10:35:02 +0000 (10:35 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 8 Dec 2004 10:35:02 +0000 (10:35 +0000)
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

index 445de42..b0dcf21 100644 (file)
@@ -142,6 +142,12 @@ typedef unsigned short etap_event_t;
 #include "sys/cmn_err.h"
 #ifdef AFS_SGI64_ENV
 #include <ksys/behavior.h>
+/* 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