xfree86: os-support: enable xf86PlatformDeviceCheckBusID() w/o pciaccess

Add build time conditional allowing to compile w/o libpciaccess.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-12-09 18:45:47 +01:00
parent 4ac6c9fda6
commit 9118d4f9cf

View File

@@ -100,12 +100,16 @@ xf86PlatformDeviceCheckBusID(struct xf86_platform_device *device, const char *bu
if (!pPci)
return FALSE;
#ifdef XSERVER_LIBPCIACCESS
if (xf86ComparePciBusString(busid,
((pPci->domain << 8)
| pPci->bus),
pPci->dev, pPci->func)) {
return TRUE;
}
#else
return FALSE;
#endif /* XSERVER_LIBPCIACCESS */
}
else if (bustype == BUS_PLATFORM) {
/* match on the minimum string */