Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-compat]: src/sys/dev/usb Protect against multiple-inclusion
details: https://anonhg.NetBSD.org/src/rev/c63955dc930f
branches: pgoyette-compat
changeset: 321117:c63955dc930f
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Mar 29 10:15:20 2018 +0000
description:
Protect against multiple-inclusion
diffstat:
sys/dev/usb/usbdivar.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r e1219d274b85 -r c63955dc930f sys/dev/usb/usbdivar.h
--- a/sys/dev/usb/usbdivar.h Wed Mar 28 22:10:15 2018 +0000
+++ b/sys/dev/usb/usbdivar.h Thu Mar 29 10:15:20 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdivar.h,v 1.114 2017/01/19 16:05:00 skrll Exp $ */
+/* $NetBSD: usbdivar.h,v 1.114.12.1 2018/03/29 10:15:20 pgoyette Exp $ */
/*
* Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -69,6 +69,9 @@
*
*/
+#ifndef _USBDIVAR_H_
+#define _USBDIVAR_H_
+
#include <sys/callout.h>
#include <sys/mutex.h>
#include <sys/bus.h>
@@ -368,3 +371,5 @@
#define usbd_lock_pipe(p) mutex_enter((p)->up_dev->ud_bus->ub_lock)
#define usbd_unlock_pipe(p) mutex_exit((p)->up_dev->ud_bus->ub_lock)
+
+#endif /* _USBDIVAR_H_ */
Home |
Main Index |
Thread Index |
Old Index