mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 16:44:52 +00:00
xfree86/common: hide a variable behind XSERVER_LIBPCIACESS
A variable pci_other is declared and can be used only on libpciacceess builds. Fixes: https://github.com/X11Libre/xserver/issues/1713 Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com>
This commit is contained in:
committed by
Enrico Weigelt
parent
ccb9b1bd17
commit
ec49f5d24a
@@ -821,10 +821,12 @@ xf86CheckSlot(const void *ptr, BusType type)
|
||||
if (!strcasecmp(pent->driver->driverName, "modesetting")) {
|
||||
/* Examine the first device only */
|
||||
msOther = xf86FindOptionValue(pent->devices[0]->options, "kmsdev");
|
||||
if ((msOther == NULL) && (pci_other == NULL)) {
|
||||
if (msOther == NULL)
|
||||
#ifdef XSERVER_LIBPCIACCESS
|
||||
if (pci_other == NULL)
|
||||
#endif
|
||||
/* Autoconfigured */
|
||||
msOther = "/dev/dri/card0";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user