From 9118d4f9cfa8b458e07e6c98b7e98d7d8fbd23cf Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 9 Dec 2025 18:45:47 +0100 Subject: [PATCH] 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 --- hw/xfree86/os-support/shared/drm_platform.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/xfree86/os-support/shared/drm_platform.c b/hw/xfree86/os-support/shared/drm_platform.c index 7f82486a8..a75b3a468 100644 --- a/hw/xfree86/os-support/shared/drm_platform.c +++ b/hw/xfree86/os-support/shared/drm_platform.c @@ -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 */