Signed-off-by: Alexandr Shadchin <alexandr.shadc...@gmail.com>
---
 hw/xfree86/os-support/bsd/bsd_init.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hw/xfree86/os-support/bsd/bsd_init.c 
b/hw/xfree86/os-support/bsd/bsd_init.c
index a0caee3..c8a4e05 100644
--- a/hw/xfree86/os-support/bsd/bsd_init.c
+++ b/hw/xfree86/os-support/bsd/bsd_init.c
@@ -292,13 +292,13 @@ acquire_vt:
                    {
                        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)
                    {
                        FatalError("xf86OpenConsole: KDENABIO failed (%s)",
                                   strerror(errno));
                    }
-       #endif
+#endif
                    if (ioctl(xf86Info.consoleFd, KDSETMODE, KD_GRAPHICS) < 0)
                    {
                        FatalError("xf86OpenConsole: KDSETMODE KD_GRAPHICS 
failed");
@@ -648,7 +648,7 @@ xf86CloseConsole()
            VT.mode = VT_AUTO;
            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)
         {
             xf86FatalError("xf86CloseConsole: KDDISABIO failed (%s)",
-- 
1.7.6

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to