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:
Jeremy Huddleston Sequoia 2013-11-08 14:55:33 -08:00
parent 5b02d5b7aa
commit 4a251f5883
1 changed files with 4 additions and 1 deletions

View File

@ -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) {