Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ext2fs include stddef.h for offsetof.
details: https://anonhg.NetBSD.org/src/rev/50308d54bc49
branches: trunk
changeset: 346809:50308d54bc49
user: nonaka <nonaka%NetBSD.org@localhost>
date: Thu Aug 04 04:05:14 2016 +0000
description:
include stddef.h for offsetof.
fix newfs_ext2fs build failure on evbppc.
diffstat:
sys/ufs/ext2fs/ext2fs_dinode.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 5c9dbf3f9087 -r 50308d54bc49 sys/ufs/ext2fs/ext2fs_dinode.h
--- a/sys/ufs/ext2fs/ext2fs_dinode.h Thu Aug 04 03:50:55 2016 +0000
+++ b/sys/ufs/ext2fs/ext2fs_dinode.h Thu Aug 04 04:05:14 2016 +0000
@@ -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>
/*
Home |
Main Index |
Thread Index |
Old Index