Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/altq make this compile.
details: https://anonhg.NetBSD.org/src/rev/944ed1689dc5
branches: trunk
changeset: 536109:944ed1689dc5
user: gehenna <gehenna%NetBSD.org@localhost>
date: Sat Sep 07 11:56:33 2002 +0000
description:
make this compile.
diffstat:
sys/altq/altq_conf.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diffs (41 lines):
diff -r 163954f9b797 -r 944ed1689dc5 sys/altq/altq_conf.c
--- a/sys/altq/altq_conf.c Sat Sep 07 04:04:05 2002 +0000
+++ b/sys/altq/altq_conf.c Sat Sep 07 11:56:33 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: altq_conf.c,v 1.7 2002/09/06 13:18:43 gehenna Exp $ */
+/* $NetBSD: altq_conf.c,v 1.8 2002/09/07 11:56:33 gehenna Exp $ */
/* $KAME: altq_conf.c,v 1.13 2002/01/29 10:16:01 kjc Exp $ */
/*
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: altq_conf.c,v 1.7 2002/09/06 13:18:43 gehenna Exp $");
+__KERNEL_RCSID(0, "$NetBSD: altq_conf.c,v 1.8 2002/09/07 11:56:33 gehenna Exp $");
#if defined(__FreeBSD__) || defined(__NetBSD__)
#include "opt_altq.h"
@@ -158,7 +158,12 @@
*/
int naltqsw = sizeof (altqsw) / sizeof (altqsw[0]);
-#if !defined(__NetBSD__) && defined(__OpenBSD__)
+#if defined(__NetBSD__)
+dev_type_open(altqopen);
+dev_type_close(altqclose);
+dev_type_ioctl(altqioctl);
+#endif
+#if defined(__OpenBSD__)
static d_open_t altqopen;
static d_close_t altqclose;
static d_ioctl_t altqioctl;
@@ -198,7 +203,7 @@
#if defined(__NetBSD__)
const struct cdevsw altq_cdevsw = {
altqopen, altqclose, noread, nowrite, altqioctl,
- nostop, notty, nopoll, nommap, D_DULL
+ nostop, notty, nopoll, nommap,
};
#endif
Home |
Main Index |
Thread Index |
Old Index