diff options
author | joe <joe@FreeBSD.org> | 2002-03-27 13:32:42 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-03-27 13:32:42 +0000 |
commit | 825b3ef80a36523ec2b14202b0f8fe5658c756e2 (patch) | |
tree | b00fdd659ed0f48676dc99d8173b9061a65d14c2 | |
parent | 20985fad164b94239e7f7e98119b1e39f822db12 (diff) | |
download | FreeBSD-src-825b3ef80a36523ec2b14202b0f8fe5658c756e2.zip FreeBSD-src-825b3ef80a36523ec2b14202b0f8fe5658c756e2.tar.gz |
Move some includes around to make it more *BSD compliant.
Suggested by: Lennart Augustsson <augustss@netbsd.org>
-rw-r--r-- | sys/dev/usb/uvscom.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sys/dev/usb/uvscom.c b/sys/dev/usb/uvscom.c index bdcf31a..849369e 100644 --- a/sys/dev/usb/uvscom.c +++ b/sys/dev/usb/uvscom.c @@ -1,3 +1,4 @@ +/* $NetBSD: usb/uvscom.c,v 1.1 2002/03/19 15:08:42 augustss Exp $ */ /*- * Copyright (c) 2001-2002, Shunsuke Akiyama <akiyama@jp.FreeBSD.org>. * All rights reserved. @@ -37,17 +38,22 @@ #include <sys/systm.h> #include <sys/kernel.h> #include <sys/malloc.h> -#include <sys/bus.h> -#include <sys/ioccom.h> #include <sys/fcntl.h> #include <sys/conf.h> #include <sys/tty.h> #include <sys/file.h> +#if defined(__FreeBSD__) +#include <sys/bus.h> +#include <sys/ioccom.h> #if __FreeBSD_version >= 500014 #include <sys/selinfo.h> #else #include <sys/select.h> #endif +#else +#include <sys/ioctl.h> +#include <sys/device.h> +#endif #include <sys/proc.h> #include <sys/vnode.h> #include <sys/poll.h> @@ -63,13 +69,15 @@ #include <dev/usb/ucomvar.h> #ifdef UVSCOM_DEBUG -#include <sys/sysctl.h> - static int uvscomdebug = 1; +#if defined(__FreeBSD__) +#include <sys/sysctl.h> + SYSCTL_DECL(_debug_usb); SYSCTL_INT(_debug_usb, OID_AUTO, uvscom, CTLFLAG_RW, &uvscomdebug, 0, "uvscom debug level"); +#endif #define DPRINTFN(n, x) do { \ if (uvscomdebug > (n)) \ |