Only add wsfb to the list of autoconfigured drivers if no other matches were

found.  Makes xorg.conf-less X work again on sparc64 and macppc systems with
a single display adapter.

ok matthieu@, beck@
This commit is contained in:
kettenis 2010-03-15 20:50:52 +00:00
parent e638acc733
commit 42fc690ae9

View File

@ -524,7 +524,9 @@ listPossibleVideoDrivers(char *matches[], int nmatches)
if (i < (nmatches - 1)) {
#if defined(__OpenBSD__)
# if !defined(__i386__) && !defined(__amd64__)
if (i == 0) {
matches[i++] = xnfstrdup("wsfb");
}
# endif
#elif !defined(__linux__) && defined(__sparc__)
matches[i++] = xnfstrdup("wsfb");