Module Name: src Committed By: nonaka Date: Thu Aug 4 04:05:14 UTC 2016
Modified Files: src/sys/ufs/ext2fs: ext2fs_dinode.h Log Message: include stddef.h for offsetof. fix newfs_ext2fs build failure on evbppc. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/ufs/ext2fs/ext2fs_dinode.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ufs/ext2fs/ext2fs_dinode.h diff -u src/sys/ufs/ext2fs/ext2fs_dinode.h:1.30 src/sys/ufs/ext2fs/ext2fs_dinode.h:1.31 --- src/sys/ufs/ext2fs/ext2fs_dinode.h:1.30 Thu Aug 4 02:49:50 2016 +++ src/sys/ufs/ext2fs/ext2fs_dinode.h Thu Aug 4 04:05:14 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: ext2fs_dinode.h,v 1.30 2016/08/04 02:49:50 nonaka Exp $ */ +/* $NetBSD: ext2fs_dinode.h,v 1.31 2016/08/04 04:05:14 nonaka Exp $ */ /* * Copyright (c) 1982, 1989, 1993 @@ -67,6 +67,10 @@ #ifndef _UFS_EXT2FS_EXT2FS_DINODE_H_ #define _UFS_EXT2FS_EXT2FS_DINODE_H_ +#if !defined(_KERNEL) && !defined(_STANDALONE) +#include <stddef.h> /* for offsetof */ +#endif + #include <sys/stat.h> /*