bsd: ioctl KDENABIO/KDDISABIO do not matter for OpenBSD

Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com>
Tested-by: Matthieu Herrb <matthieu.herrb@laas.fr>
This commit is contained in:
Alexandr Shadchin 2011-08-27 02:02:36 +06:00
parent 91042b98af
commit 0be1640dbb

View File

@ -291,13 +291,13 @@ acquire_vt:
{ {
FatalError("xf86OpenConsole: VT_SETMODE VT_PROCESS failed"); FatalError("xf86OpenConsole: VT_SETMODE VT_PROCESS failed");
} }
#if !defined(USE_DEV_IO) && !defined(USE_I386_IOPL) #if !defined(__OpenBSD__) && !defined(USE_DEV_IO) && !defined(USE_I386_IOPL)
if (ioctl(xf86Info.consoleFd, KDENABIO, 0) < 0) if (ioctl(xf86Info.consoleFd, KDENABIO, 0) < 0)
{ {
FatalError("xf86OpenConsole: KDENABIO failed (%s)", FatalError("xf86OpenConsole: KDENABIO failed (%s)",
strerror(errno)); strerror(errno));
} }
#endif #endif
if (ioctl(xf86Info.consoleFd, KDSETMODE, KD_GRAPHICS) < 0) if (ioctl(xf86Info.consoleFd, KDSETMODE, KD_GRAPHICS) < 0)
{ {
FatalError("xf86OpenConsole: KDSETMODE KD_GRAPHICS failed"); FatalError("xf86OpenConsole: KDSETMODE KD_GRAPHICS failed");
@ -648,7 +648,7 @@ xf86CloseConsole()
VT.mode = VT_AUTO; VT.mode = VT_AUTO;
ioctl(xf86Info.consoleFd, VT_SETMODE, &VT); /* dflt vt handling */ ioctl(xf86Info.consoleFd, VT_SETMODE, &VT); /* dflt vt handling */
} }
#if !defined(OpenBSD) && !defined(USE_DEV_IO) && !defined(USE_I386_IOPL) #if !defined(__OpenBSD__) && !defined(USE_DEV_IO) && !defined(USE_I386_IOPL)
if (ioctl(xf86Info.consoleFd, KDDISABIO, 0) < 0) if (ioctl(xf86Info.consoleFd, KDDISABIO, 0) < 0)
{ {
xf86FatalError("xf86CloseConsole: KDDISABIO failed (%s)", xf86FatalError("xf86CloseConsole: KDDISABIO failed (%s)",