Module Name:    src
Committed By:   pgoyette
Date:           Thu Mar 29 10:15:20 UTC 2018

Modified Files:
        src/sys/dev/usb [pgoyette-compat]: usbdivar.h

Log Message:
Protect against multiple-inclusion


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.114.12.1 src/sys/dev/usb/usbdivar.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/dev/usb/usbdivar.h
diff -u src/sys/dev/usb/usbdivar.h:1.114 src/sys/dev/usb/usbdivar.h:1.114.12.1
--- src/sys/dev/usb/usbdivar.h:1.114	Thu Jan 19 16:05:00 2017
+++ src/sys/dev/usb/usbdivar.h	Thu Mar 29 10:15:20 2018
@@ -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 @@ usb_addr2dindex(int addr)
 
 #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_ */

Reply via email to