From 48633351c597278d4c8efd5a80163f0637c85aaf Mon Sep 17 00:00:00 2001 From: "Jonathan A. Kollasch" Date: Mon, 2 May 2011 21:06:34 +0000 Subject: [PATCH] NetBSD: DEBUG can not typically be defined Like IRIX 6.5, some NetBSD kernel structures change size in the presence of the DEBUG preprocessor symbol. Change-Id: I3c5acba7afd22be9b179f628dfa0c1c402c08e2a Reviewed-on: http://gerrit.openafs.org/4605 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/afs_osi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/afs/afs_osi.h b/src/afs/afs_osi.h index 548ead53d..a194f94ac 100644 --- a/src/afs/afs_osi.h +++ b/src/afs/afs_osi.h @@ -147,7 +147,7 @@ extern void osi_PostPopulateVCache(struct vcache *); extern void osi_AttachVnode(struct vcache *, int seq); /* - * In IRIX 6.5 we cannot have DEBUG turned on since certain + * In IRIX 6.5 and NetBSD we cannot have DEBUG turned on since certain * system-defined structures are a different size with DEBUG on, the * kernel is compiled without DEBUG on, and the resulting differences * would break our ability to interact with the rest of the kernel. @@ -155,7 +155,7 @@ extern void osi_AttachVnode(struct vcache *, int seq); * Is DEBUG only for turning the ASSERT() macro? If so, we should * be able to eliminate DEBUG entirely. */ -#if !defined(AFS_SGI65_ENV) +#if !defined(AFS_SGI65_ENV) && !defined(AFS_NBSD_ENV) #ifndef DEBUG #define DEBUG 1 /* Default is to enable debugging/logging */ #endif -- 2.39.5