From: Jonathan A. Kollasch Date: Mon, 2 May 2011 21:06:34 +0000 (+0000) Subject: NetBSD: DEBUG can not typically be defined X-Git-Tag: upstream/1.6.0.pre5^2~1 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=dd408a153adaca8795c2ae4ea88d0dadd067ca22;p=packages%2Fo%2Fopenafs.git 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. Reviewed-on: http://gerrit.openafs.org/4605 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit 48633351c597278d4c8efd5a80163f0637c85aaf) Change-Id: I15771316dc657474d8b906df26f927fdbefe384c Reviewed-on: http://gerrit.openafs.org/4617 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/afs_osi.h b/src/afs/afs_osi.h index 14c0154c8..c1b04adcb 100644 --- a/src/afs/afs_osi.h +++ b/src/afs/afs_osi.h @@ -146,7 +146,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. @@ -154,7 +154,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