Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev Protect against multiple inclusion.



details:   https://anonhg.NetBSD.org/src/rev/1f8fb236bfe5
branches:  trunk
changeset: 827539:1f8fb236bfe5
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Wed Nov 01 19:15:31 2017 +0000

description:
Protect against multiple inclusion.

diffstat:

 sys/dev/dkvar.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r e383552c09f6 -r 1f8fb236bfe5 sys/dev/dkvar.h
--- a/sys/dev/dkvar.h   Wed Nov 01 17:00:17 2017 +0000
+++ b/sys/dev/dkvar.h   Wed Nov 01 19:15:31 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dkvar.h,v 1.29 2017/04/27 17:07:22 jdolecek Exp $ */
+/* $NetBSD: dkvar.h,v 1.30 2017/11/01 19:15:31 mlelstv Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -29,6 +29,9 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#ifndef _DEV_DKVAR_H_
+#define _DEV_DKVAR_H_
+
 #include <sys/rndsource.h>
 
 struct pathbuf; /* from namei.h */
@@ -108,3 +111,5 @@
 void   dk_getdefaultlabel(struct dk_softc *, struct disklabel *);
 
 int    dk_lookup(struct pathbuf *, struct lwp *, struct vnode **);
+
+#endif /* ! _DEV_DKVAR_H_ */   



Home | Main Index | Thread Index | Old Index