From 0335569abc6d8a4650e42f3de2231e64dc45aba4 Mon Sep 17 00:00:00 2001 From: augustss Date: Tue, 25 Jan 2000 13:56:23 +0000 Subject: Make it compile even if you leave out the ucom attachment. --- sys/dev/usb/files.usb | 4 ++-- sys/dev/usb/ucom.c | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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 +#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; -- cgit