summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ucom.c
diff options
context:
space:
mode:
authoraugustss <augustss@NetBSD.org>2000-01-25 13:56:23 +0000
committeraugustss <augustss@NetBSD.org>2000-01-25 13:56:23 +0000
commit0335569abc6d8a4650e42f3de2231e64dc45aba4 (patch)
tree51f952e60e6de3a6b019751403f950077485a3f6 /sys/dev/usb/ucom.c
parenta27ee913645e5482997b2f31406687b39feeb537 (diff)
Make it compile even if you leave out the ucom attachment.
Diffstat (limited to 'sys/dev/usb/ucom.c')
-rw-r--r--sys/dev/usb/ucom.c8
1 files changed, 7 insertions, 1 deletions
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;