Fix breakage cuased by the selwakeuppri commit by defining TTIPRI for

recent versions of FreeBSD (based on __FreeBSD_version check).
This commit is contained in:
Gary Jennejohn 2003-11-10 14:02:22 +00:00
parent 9bba371fbf
commit 84df55b1f4
4 changed files with 28 additions and 0 deletions

View File

@ -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
*===========================================================================*/

View File

@ -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
*===========================================================================*/

View File

@ -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
*---------------------------------------------------------------------------*/

View File

@ -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
*---------------------------------------------------------------------------*/