summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_dev.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-03-20 23:12:14 +0000
committerthompsa <thompsa@FreeBSD.org>2009-03-20 23:12:14 +0000
commit1f8835dc17f7687ea23fd70df12fc29ec7a052a1 (patch)
tree3033567942b232e2dd3b416b9ea983de102b02a5 /sys/dev/usb/usb_dev.c
parent9f723b539089d6eef4ea8986738d45f1833e37fa (diff)
downloadFreeBSD-src-1f8835dc17f7687ea23fd70df12fc29ec7a052a1.zip
FreeBSD-src-1f8835dc17f7687ea23fd70df12fc29ec7a052a1.tar.gz
Fix compile with USB_HAVE_BUSDMA/USB_HAVE_UGEN/USB_HAVE_STRINGS.
Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/usb/usb_dev.c')
-rw-r--r--sys/dev/usb/usb_dev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_dev.c b/sys/dev/usb/usb_dev.c
index 29e8b42..97fbebd 100644
--- a/sys/dev/usb/usb_dev.c
+++ b/sys/dev/usb/usb_dev.c
@@ -54,6 +54,8 @@
#include <machine/stdarg.h>
+#if USB_HAVE_UGEN
+
#if USB_DEBUG
static int usb2_fifo_debug = 0;
@@ -2195,3 +2197,4 @@ usb2_fifo_set_close_zlp(struct usb2_fifo *f, uint8_t onoff)
/* send a Zero Length Packet, ZLP, before close */
f->flag_short = onoff;
}
+#endif /* USB_HAVE_UGEN */
OpenPOWER on IntegriCloud