Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Make it compile even if you leave out the ucom a...



details:   https://anonhg.NetBSD.org/src/rev/9904bc83392e
branches:  trunk
changeset: 481273:9904bc83392e
user:      augustss <augustss%NetBSD.org@localhost>
date:      Tue Jan 25 13:56:23 2000 +0000

description:
Make it compile even if you leave out the ucom attachment.

diffstat:

 sys/dev/usb/files.usb |  4 ++--
 sys/dev/usb/ucom.c    |  8 +++++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r 3e9726078743 -r 9904bc83392e sys/dev/usb/files.usb
--- a/sys/dev/usb/files.usb     Tue Jan 25 13:27:07 2000 +0000
+++ b/sys/dev/usb/files.usb     Tue Jan 25 13:56:23 2000 +0000
@@ -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 @@
 # 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 -r 3e9726078743 -r 9904bc83392e sys/dev/usb/ucom.c
--- a/sys/dev/usb/ucom.c        Tue Jan 25 13:27:07 2000 +0000
+++ b/sys/dev/usb/ucom.c        Tue Jan 25 13:56:23 2000 +0000
@@ -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 @@
        usbd_free_xfer(sc->sc_oxfer);
 }
 
+#endif /* NUCOM > 0 */
+
 int
 ucomprint(aux, pnp)
        void *aux;



Home | Main Index | Thread Index | Old Index