summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86Config.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2005-12-09 03:59:41 +0000
committerAdam Jackson <ajax@nwnk.net>2005-12-09 03:59:41 +0000
commit80ea67e37980d07438749f1aa4dfdd7ee1086799 (patch)
tree2bac1bad34983996d0bf24687c4ddc7506cb93e8 /hw/xfree86/common/xf86Config.c
parent7fa2d11d85d43f42aa9c02f8d772c91d1b04df43 (diff)
Bug #4361: Change driver probe logic to read the driver list from disk
instead of using a compile-time array.
Diffstat (limited to 'hw/xfree86/common/xf86Config.c')
-rw-r--r--hw/xfree86/common/xf86Config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
index 4e5f6dd4a..6f724effe 100644
--- a/hw/xfree86/common/xf86Config.c
+++ b/hw/xfree86/common/xf86Config.c
@@ -457,6 +457,11 @@ xf86InputDriverlistFromConfig()
static char **
GenerateDriverlist(char * dirname, char * drivernames)
{
+#ifdef XFree86LOADER
+ char *subdirs[] = { dirname, NULL };
+ static const char *patlist[] = {"(.*)_drv\\.so", "(.*)_drv\\.o", NULL};
+ return LoaderListDirs(subdirs, patlist);
+#else /* non-loadable server */
char *cp, **driverlist;
int count;
@@ -544,6 +549,7 @@ GenerateDriverlist(char * dirname, char * drivernames)
#endif /* XFree86LOADER */
return driverlist;
+#endif
}