diff options
author | Gary Jennejohn <gj@FreeBSD.org> | 2003-11-10 14:02:22 +0000 |
---|---|---|
committer | Gary Jennejohn <gj@FreeBSD.org> | 2003-11-10 14:02:22 +0000 |
commit | 84df55b1f4c0f9c32bcb23008bfb7e93a318054b (patch) | |
tree | f6d5a35b50bcd4bd323b3367de8f171911ccbf7a | |
parent | 9bba371fbf641048af4891be05863c4e383344d3 (diff) | |
download | src-84df55b1f4c0f9c32bcb23008bfb7e93a318054b.tar.gz src-84df55b1f4c0f9c32bcb23008bfb7e93a318054b.zip |
Fix breakage cuased by the selwakeuppri commit by defining TTIPRI for
recent versions of FreeBSD (based on __FreeBSD_version check).
Notes
Notes:
svn path=/head/; revision=122419
-rw-r--r-- | sys/i4b/driver/i4b_rbch.c | 7 | ||||
-rw-r--r-- | sys/i4b/driver/i4b_tel.c | 7 | ||||
-rw-r--r-- | sys/i4b/driver/i4b_trace.c | 7 | ||||
-rw-r--r-- | sys/i4b/layer4/i4b_i4bdrv.c | 7 |
4 files changed, 28 insertions, 0 deletions
diff --git a/sys/i4b/driver/i4b_rbch.c b/sys/i4b/driver/i4b_rbch.c index 40f2c24e4538..271eb66b26cf 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 *===========================================================================*/ diff --git a/sys/i4b/driver/i4b_tel.c b/sys/i4b/driver/i4b_tel.c index c629a4449ba4..4b939704e34b 100644 --- a/sys/i4b/driver/i4b_tel.c +++ b/sys/i4b/driver/i4b_tel.c @@ -149,6 +149,13 @@ static void i4btelattach(void *); PSEUDO_SET(i4btelattach, i4b_tel); +#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 *===========================================================================*/ diff --git a/sys/i4b/driver/i4b_trace.c b/sys/i4b/driver/i4b_trace.c index e601ed817dda..586a68da8c8a 100644 --- a/sys/i4b/driver/i4b_trace.c +++ b/sys/i4b/driver/i4b_trace.c @@ -90,6 +90,13 @@ PSEUDO_SET(i4btrcattach, i4b_trace); int get_trace_data_from_l1(i4b_trace_hdr_t *hdr, int len, char *buf); +#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 *---------------------------------------------------------------------------*/ diff --git a/sys/i4b/layer4/i4b_i4bdrv.c b/sys/i4b/layer4/i4b_i4bdrv.c index 95de760a7329..648a09722dc6 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 *---------------------------------------------------------------------------*/ |