mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 08:15:24 +00:00
Bug #4361: Change driver probe logic to read the driver list from disk
instead of using a compile-time array.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user