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:
parent
9bba371fbf
commit
84df55b1f4
@ -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
|
||||
*===========================================================================*/
|
||||
|
@ -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
|
||||
*===========================================================================*/
|
||||
|
@ -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
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
@ -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
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user