Differential D9436 Diff 24885 x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86AutoConfig.c
Changeset View
Changeset View
Standalone View
Standalone View
x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86AutoConfig.c
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- 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 */ |