diff options
| author | augustss <augustss@NetBSD.org> | 2000-01-25 13:56:23 +0000 |
|---|---|---|
| committer | augustss <augustss@NetBSD.org> | 2000-01-25 13:56:23 +0000 |
| commit | 0335569abc6d8a4650e42f3de2231e64dc45aba4 (patch) | |
| tree | 51f952e60e6de3a6b019751403f950077485a3f6 /sys/dev | |
| parent | a27ee913645e5482997b2f31406687b39feeb537 (diff) | |
Make it compile even if you leave out the ucom attachment.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/files.usb | 4 | ||||
| -rw-r--r-- | sys/dev/usb/ucom.c | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/usb/files.usb b/sys/dev/usb/files.usb index 63a09cc3016..899e20b6adb 100644 --- a/sys/dev/usb/files.usb +++ b/sys/dev/usb/files.usb @@ -1,4 +1,4 @@ -# $NetBSD: files.usb,v 1.14 2000/01/25 08:12:58 augustss Exp $ +# $NetBSD: files.usb,v 1.15 2000/01/25 13:56:23 augustss Exp $ # # Config file and device description for machine-independent USB code. # Included by ports that need it. Ports that use it must provide @@ -35,7 +35,7 @@ file dev/usb/uaudio.c uaudio # Modem and com serial port device ucom attach ucom at ucombus -file dev/usb/ucom.c ucom needs-flag +file dev/usb/ucom.c ucom | ucombus needs-flag # Generic devices device ugen diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c index 5d523647e54..78a90a62415 100644 --- a/sys/dev/usb/ucom.c +++ b/sys/dev/usb/ucom.c @@ -1,4 +1,4 @@ -/* $NetBSD: ucom.c,v 1.12 2000/01/25 08:12:58 augustss Exp $ */ +/* $NetBSD: ucom.c,v 1.13 2000/01/25 13:56:23 augustss Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -59,6 +59,10 @@ #include <dev/usb/ucomvar.h> +#include "ucom.h" + +#if NUCOM > 0 + #ifdef UCOM_DEBUG #define DPRINTFN(n, x) if (ucomdebug > (n)) logprintf x int ucomdebug = 0; @@ -959,6 +963,8 @@ ucom_cleanup(sc) usbd_free_xfer(sc->sc_oxfer); } +#endif /* NUCOM > 0 */ + int ucomprint(aux, pnp) void *aux; |
