From 78213678b2df40593096aa81fd8f48eaa8d96109 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Mon, 23 Jun 2025 22:42:25 -0500 Subject: [PATCH] xfree86: common: xf86pciBus: Add compatibility define for `pci_device_is_boot_display()` It will take some time for a new libpciaccess to be released and even then bumping the dependency for libpciaccess isn't attractive. If an older libpciaccess is used just add a static inline define. Signed-off-by: Tautvis --- hw/xfree86/common/xf86platformBus.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hw/xfree86/common/xf86platformBus.h b/hw/xfree86/common/xf86platformBus.h index dfdbd8b11..134d2759f 100644 --- a/hw/xfree86/common/xf86platformBus.h +++ b/hw/xfree86/common/xf86platformBus.h @@ -94,4 +94,11 @@ xf86PlatformDeviceCheckBusID(struct xf86_platform_device *device, const char *bu #endif +#ifndef pci_device_is_boot_display +static inline Bool pci_device_is_boot_display(struct pci_device *dev) +{ + return FALSE; +} +#endif + #endif