Skip to content

Commit

Permalink
cope with the cdevsw field order change in freebsd51
Browse files Browse the repository at this point in the history
  • Loading branch information
kjc committed Aug 14, 2003
1 parent cbed48f commit 432b766
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions kame/sys/altq/altq_conf.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: altq_conf.c,v 1.21 2003/08/09 16:57:42 suz Exp $ */
/* $KAME: altq_conf.c,v 1.22 2003/08/14 08:22:25 kjc Exp $ */

/*
* Copyright (C) 1997-2003
Expand Down Expand Up @@ -187,11 +187,17 @@ static struct cdevsw altq_cdevsw =
{ altqopen, altqclose, noread, nowrite,
altqioctl, seltrue, nommap, nostrategy,
"altq", CDEV_MAJOR, nodump, nopsize, 0, -1 };
#else
#elif (__FreeBSD_version < 501000)
static struct cdevsw altq_cdevsw =
{ altqopen, altqclose, noread, nowrite,
altqioctl, seltrue, nommap, nostrategy,
"altq", CDEV_MAJOR, nodump, nopsize, 0 };
#else
static struct cdevsw altq_cdevsw =
{ CDEV_MAJOR, 0, "altq",
altqopen, altqclose, noread, nowrite,
altqioctl, nopoll, nommap, nostrategy,
nodump, nokqfilter };
#endif
#endif /* __FreeBSD__ */

Expand Down

0 comments on commit 432b766

Please sign in to comment.