mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 18:20:05 +01: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:
parent
5b02d5b7aa
commit
4a251f5883
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue