summaryrefslogtreecommitdiff
path: root/xserver/hw
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-10-27 20:49:52 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-10-27 20:49:52 +0000
commit8d7a9cbb99636c52f7ead5912f5f2bf2d9f39ebf (patch)
tree8ff8ae904888abcea0fec46bf0ef6f3c641fb86d /xserver/hw
parenta7ec49374db403a951cf715d0917956062094727 (diff)
Replace fbdev by wsfb as fallback driver on arches that support it.
Ok todd@, oga@.
Diffstat (limited to 'xserver/hw')
-rw-r--r--xserver/hw/xfree86/common/xf86AutoConfig.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xserver/hw/xfree86/common/xf86AutoConfig.c b/xserver/hw/xfree86/common/xf86AutoConfig.c
index 944cac190..21ebd3b00 100644
--- a/xserver/hw/xfree86/common/xf86AutoConfig.c
+++ b/xserver/hw/xfree86/common/xf86AutoConfig.c
@@ -522,7 +522,11 @@ listPossibleVideoDrivers(char *matches[], int nmatches)
/* Fallback to platform default frame buffer driver */
if (i < (nmatches - 1)) {
-#if !defined(__linux__) && defined(__sparc__)
+#if defined(__OpenBSD__)
+# if !defined(__i386__) && !defined(__amd64__)
+ matches[i++] = xnfstrdup("wsfb");
+# endif
+#elif !defined(__linux__) && defined(__sparc__)
matches[i++] = xnfstrdup("wsfb");
#else
matches[i++] = xnfstrdup("fbdev");