mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xfree86: Fix build without libpciaccess
Regression fix from commit 04ab07ca19
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Reviewed-by: Connor Behan <connor.behan@gmail.com>
This commit is contained in:
@@ -266,9 +266,12 @@ xf86IsEntityPrimary(int entityIndex)
|
||||
{
|
||||
EntityPtr pEnt = xf86Entities[entityIndex];
|
||||
|
||||
#ifdef XSERVER_LIBPCIACCESS
|
||||
if (primaryBus.type == BUS_PLATFORM && pEnt->bus.type == BUS_PCI)
|
||||
return MATCH_PCI_DEVICES(pEnt->bus.id.pci, primaryBus.id.plat->pdev);
|
||||
else if (primaryBus.type != pEnt->bus.type)
|
||||
#endif
|
||||
|
||||
if (primaryBus.type != pEnt->bus.type)
|
||||
return FALSE;
|
||||
|
||||
switch (pEnt->bus.type) {
|
||||
|
||||
Reference in New Issue
Block a user