Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Protect multiple inclusion.
details: https://anonhg.NetBSD.org/src/rev/c66b4a223f9c
branches: trunk
changeset: 750008:c66b4a223f9c
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Mon Dec 14 03:11:22 2009 +0000
description:
Protect multiple inclusion.
diffstat:
sys/dev/md.h | 7 ++++++-
sys/dev/vndvar.h | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diffs (50 lines):
diff -r 0702ccccf1be -r c66b4a223f9c sys/dev/md.h
--- a/sys/dev/md.h Mon Dec 14 03:04:33 2009 +0000
+++ b/sys/dev/md.h Mon Dec 14 03:11:22 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.h,v 1.10 2009/10/21 23:12:10 snj Exp $ */
+/* $NetBSD: md.h,v 1.11 2009/12/14 03:11:22 uebayasi Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross
@@ -25,6 +25,9 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef _SYS_DEV_MD_H_
+#define _SYS_DEV_MD_H_
+
/*
* Memory-disk ioctl functions:
*/
@@ -86,3 +89,5 @@
extern int md_is_root;
#endif /* _KERNEL */
+
+#endif /* _SYS_DEV_MD_H_ */
diff -r 0702ccccf1be -r c66b4a223f9c sys/dev/vndvar.h
--- a/sys/dev/vndvar.h Mon Dec 14 03:04:33 2009 +0000
+++ b/sys/dev/vndvar.h Mon Dec 14 03:11:22 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vndvar.h,v 1.25 2009/12/06 16:33:18 dsl Exp $ */
+/* $NetBSD: vndvar.h,v 1.26 2009/12/14 03:11:22 uebayasi Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -106,6 +106,9 @@
* @(#)vnioctl.h 8.1 (Berkeley) 6/10/93
*/
+#ifndef _SYS_DEV_VNDVAR_H_
+#define _SYS_DEV_VNDVAR_H_
+
#include <sys/pool.h>
/*
@@ -220,3 +223,5 @@
offsetof(struct vnd_ioctl, vnd_size))
#define VNDIOOCCLR _IOC(IOC_IN, 'F', 1, \
offsetof(struct vnd_ioctl, vnd_size))
+
+#endif /* _SYS_DEV_VNDVAR_H_ */
Home |
Main Index |
Thread Index |
Old Index