summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJeremy C. Reed <reed@glacier.reedmedia.net>2007-08-16 11:23:28 -0500
committerJeremy C. Reed <reed@glacier.reedmedia.net>2007-08-16 11:23:28 -0500
commitbe536b79f2a364399937314cfa6c88bf8188da9c (patch)
tree3332e1f2385d58c0fa34a69fdf5b1fea414b421e /hw
parent1d4bea6106d7a1c83e1dfe37fad8268589feaa0b (diff)
Update for support on NetBSD and DragonFly. From
Joerg Sonnenberger and pkgsrc.
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/os-support/bsd/bsd_init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/xfree86/os-support/bsd/bsd_init.c b/hw/xfree86/os-support/bsd/bsd_init.c
index 07f031fa8..2c6a0256b 100644
--- a/hw/xfree86/os-support/bsd/bsd_init.c
+++ b/hw/xfree86/os-support/bsd/bsd_init.c
@@ -159,7 +159,9 @@ xf86OpenConsole()
xf86ConsOpen_t *driver;
#if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
int result;
+#ifdef __FreeBSD__
struct utsname uts;
+#endif
vtmode_t vtmode;
#endif
@@ -250,6 +252,7 @@ xf86OpenConsole()
#endif
/* otherwise fall through */
case PCVT:
+#if !(defined(__NetBSD__) && (__NetBSD_Version__ >= 200000000))
/*
* First activate the #1 VT. This is a hack to allow a server
* to be started while another one is active. There should be
@@ -264,7 +267,7 @@ xf86OpenConsole()
}
sleep(1);
}
-
+#endif
acquire_vt:
/*
* now get the VT