Update for support on NetBSD and DragonFly. From
Joerg Sonnenberger and pkgsrc.
This commit is contained in:
parent
1d4bea6106
commit
be536b79f2
|
@ -159,7 +159,9 @@ xf86OpenConsole()
|
||||||
xf86ConsOpen_t *driver;
|
xf86ConsOpen_t *driver;
|
||||||
#if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
|
#if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
|
||||||
int result;
|
int result;
|
||||||
|
#ifdef __FreeBSD__
|
||||||
struct utsname uts;
|
struct utsname uts;
|
||||||
|
#endif
|
||||||
vtmode_t vtmode;
|
vtmode_t vtmode;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -250,6 +252,7 @@ xf86OpenConsole()
|
||||||
#endif
|
#endif
|
||||||
/* otherwise fall through */
|
/* otherwise fall through */
|
||||||
case PCVT:
|
case PCVT:
|
||||||
|
#if !(defined(__NetBSD__) && (__NetBSD_Version__ >= 200000000))
|
||||||
/*
|
/*
|
||||||
* First activate the #1 VT. This is a hack to allow a server
|
* First activate the #1 VT. This is a hack to allow a server
|
||||||
* to be started while another one is active. There should be
|
* to be started while another one is active. There should be
|
||||||
|
@ -264,7 +267,7 @@ xf86OpenConsole()
|
||||||
}
|
}
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
acquire_vt:
|
acquire_vt:
|
||||||
/*
|
/*
|
||||||
* now get the VT
|
* now get the VT
|
||||||
|
|
Loading…
Reference in New Issue