summaryrefslogtreecommitdiffstats
path: root/sys/i4b/layer4
diff options
context:
space:
mode:
authorgj <gj@FreeBSD.org>2003-11-10 14:02:22 +0000
committergj <gj@FreeBSD.org>2003-11-10 14:02:22 +0000
commit475589ff3f82cc14fce2c7915e3a6cc57dcc7936 (patch)
treef6d5a35b50bcd4bd323b3367de8f171911ccbf7a /sys/i4b/layer4
parent944e5099fb54947af7b1412cecd05e0b01876859 (diff)
downloadFreeBSD-src-475589ff3f82cc14fce2c7915e3a6cc57dcc7936.zip
FreeBSD-src-475589ff3f82cc14fce2c7915e3a6cc57dcc7936.tar.gz
Fix breakage cuased by the selwakeuppri commit by defining TTIPRI for
recent versions of FreeBSD (based on __FreeBSD_version check).
Diffstat (limited to 'sys/i4b/layer4')
-rw-r--r--sys/i4b/layer4/i4b_i4bdrv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/i4b/layer4/i4b_i4bdrv.c b/sys/i4b/layer4/i4b_i4bdrv.c
index 95de760..648a097 100644
--- a/sys/i4b/layer4/i4b_i4bdrv.c
+++ b/sys/i4b/layer4/i4b_i4bdrv.c
@@ -91,6 +91,13 @@ static struct cdevsw i4b_cdevsw = {
static void i4battach(void *);
PSEUDO_SET(i4battach, i4b_i4bdrv);
+#if __FreeBSD_version >= 501113
+#ifndef TTIPRI
+/* don't want to include tty.h just to get this */
+#define TTIPRI (PSOCK + 1)
+#endif
+#endif
+
/*---------------------------------------------------------------------------*
* interface attach routine
*---------------------------------------------------------------------------*/
OpenPOWER on IntegriCloud