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:
parent
5b02d5b7aa
commit
4a251f5883
|
@ -266,9 +266,12 @@ xf86IsEntityPrimary(int entityIndex)
|
||||||
{
|
{
|
||||||
EntityPtr pEnt = xf86Entities[entityIndex];
|
EntityPtr pEnt = xf86Entities[entityIndex];
|
||||||
|
|
||||||
|
#ifdef XSERVER_LIBPCIACCESS
|
||||||
if (primaryBus.type == BUS_PLATFORM && pEnt->bus.type == BUS_PCI)
|
if (primaryBus.type == BUS_PLATFORM && pEnt->bus.type == BUS_PCI)
|
||||||
return MATCH_PCI_DEVICES(pEnt->bus.id.pci, primaryBus.id.plat->pdev);
|
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;
|
return FALSE;
|
||||||
|
|
||||||
switch (pEnt->bus.type) {
|
switch (pEnt->bus.type) {
|
||||||
|
|
Loading…
Reference in New Issue