mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user