blob: 071e77e8fa09a7f9b04823243af5012a7fa8d41f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- hw/xfree86/common/xf86AutoConfig.c.orig 2017-01-11 20:00:58 UTC
+++ hw/xfree86/common/xf86AutoConfig.c
@@ -276,7 +276,7 @@ listPossibleVideoDrivers(char *matches[]
i += xf86PciMatchDriver(&matches[i], nmatches - i);
#endif
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__)
matches[i++] = xnfstrdup("modesetting");
#endif
@@ -285,8 +285,10 @@ listPossibleVideoDrivers(char *matches[]
if (i < (nmatches - 1)) {
#if !defined(__linux__) && defined(__sparc__)
matches[i++] = xnfstrdup("wsfb");
-#else
+#elif defined(__linux__)
matches[i++] = xnfstrdup("fbdev");
+#elif defined(__FreeBSD__)
+ matches[i++] = xnfstrdup("scfb");
#endif
}
#endif /* !__sun */
|