summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhid.c
diff options
context:
space:
mode:
authornate <nate@openbsd.org>2002-07-11 03:11:17 +0000
committernate <nate@openbsd.org>2002-07-11 03:11:17 +0000
commit1056ff32494f3d76d42a01aa96e1c7d264b3ecd7 (patch)
treef9ba196083d656e1cca79320cb701dd7c7e55f21 /sys/dev/usb/uhid.c
parentIt is supposed to be printf, not db_printf. This change costed me (diff)
downloadwireguard-openbsd-1056ff32494f3d76d42a01aa96e1c7d264b3ecd7.tar.xz
wireguard-openbsd-1056ff32494f3d76d42a01aa96e1c7d264b3ecd7.zip
Please be more portable in usb land
Diffstat (limited to 'sys/dev/usb/uhid.c')
-rw-r--r--sys/dev/usb/uhid.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c
index ee28037c5cc..8131f4aa2f2 100644
--- a/sys/dev/usb/uhid.c
+++ b/sys/dev/usb/uhid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhid.c,v 1.20 2002/07/10 21:41:50 mickey Exp $ */
+/* $OpenBSD: uhid.c,v 1.21 2002/07/11 03:11:17 nate Exp $ */
/* $NetBSD: uhid.c,v 1.51 2002/03/17 18:02:53 augustss Exp $ */
/*
@@ -101,6 +101,10 @@ struct uhid_softc {
#define UHID_CHUNK 128 /* chunk size for read */
#define UHID_BSIZE 1020 /* buffer size */
+#if defined(__NetBSD__)
+cdev_decl(uhid);
+#endif
+
Static void uhid_intr(struct uhidev *, void *, u_int len);
Static int uhid_do_read(struct uhid_softc *, struct uio *uio, int);