From 475589ff3f82cc14fce2c7915e3a6cc57dcc7936 Mon Sep 17 00:00:00 2001 From: gj Date: Mon, 10 Nov 2003 14:02:22 +0000 Subject: Fix breakage cuased by the selwakeuppri commit by defining TTIPRI for recent versions of FreeBSD (based on __FreeBSD_version check). --- sys/i4b/driver/i4b_rbch.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys/i4b/driver/i4b_rbch.c') diff --git a/sys/i4b/driver/i4b_rbch.c b/sys/i4b/driver/i4b_rbch.c index 40f2c24..271eb66 100644 --- a/sys/i4b/driver/i4b_rbch.c +++ b/sys/i4b/driver/i4b_rbch.c @@ -126,6 +126,13 @@ static struct cdevsw i4brbch_cdevsw = { static void i4brbchattach(void *); PSEUDO_SET(i4brbchattach, i4b_rbch); +#if __FreeBSD_version >= 501113 +#ifndef TTIPRI +/* don't want to include tty.h just to get this */ +#define TTIPRI (PSOCK + 1) +#endif +#endif + /*===========================================================================* * DEVICE DRIVER ROUTINES *===========================================================================*/ -- cgit v1.1