Module Name: src Committed By: pooka Date: Wed Jan 16 21:10:14 UTC 2013
Modified Files: src/sys/fs/puffs: puffs_vfsops.c Log Message: Do the protocol consistency check hack only when compiling ELF. To generate a diff of this commit: cvs rdiff -u -r1.106 -r1.107 src/sys/fs/puffs/puffs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/fs/puffs/puffs_vfsops.c diff -u src/sys/fs/puffs/puffs_vfsops.c:1.106 src/sys/fs/puffs/puffs_vfsops.c:1.107 --- src/sys/fs/puffs/puffs_vfsops.c:1.106 Thu Aug 9 07:46:18 2012 +++ src/sys/fs/puffs/puffs_vfsops.c Wed Jan 16 21:10:14 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: puffs_vfsops.c,v 1.106 2012/08/09 07:46:18 manu Exp $ */ +/* $NetBSD: puffs_vfsops.c,v 1.107 2013/01/16 21:10:14 pooka Exp $ */ /* * Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.106 2012/08/09 07:46:18 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.107 2013/01/16 21:10:14 pooka Exp $"); #include <sys/param.h> #include <sys/kernel.h> @@ -85,7 +85,7 @@ static struct putter_ops puffs_putter = * Try to ensure data structures used by the puffs protocol * do not unexpectedly change. */ -#ifdef __i386__ +#if defined(__i386__) && defined(__ELF__) CTASSERT(sizeof(struct puffs_kargs) == 3928); CTASSERT(sizeof(struct vattr) == 136); CTASSERT(sizeof(struct puffs_req) == 44);