mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-08 01:08:23 +02:00
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. Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2038>
This commit is contained in:
parent
41c58693c3
commit
4ba1df3ce6
2 changed files with 12 additions and 0 deletions
|
|
@ -165,4 +165,11 @@ static inline void xf86MergeOutputClassOptions(int index, void **options) {}
|
|||
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_PCI_DEVICE_IS_BOOT_DISPLAY
|
||||
static inline Bool pci_device_is_boot_display(struct pci_device *dev)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -330,6 +330,11 @@ conf_data.set('PCVT_SUPPORT', supports_pcvt ? '1' : false)
|
|||
conf_data.set('SYSCONS_SUPPORT', supports_syscons ? '1' : false)
|
||||
conf_data.set('WSCONS_SUPPORT', supports_wscons ? '1' : false)
|
||||
conf_data.set('XSERVER_LIBPCIACCESS', get_option('pciaccess') ? '1' : false)
|
||||
if get_option('pciaccess')
|
||||
pciaccess_dep = dependency('pciaccess', required: build_xorg)
|
||||
conf_data.set('HAVE_PCI_DEVICE_IS_BOOT_DISPLAY',
|
||||
cc.has_function('pci_device_is_boot_display', dependencies: pciaccess_dep) ? '1' : false)
|
||||
endif
|
||||
conf_data.set('XSERVER_PLATFORM_BUS', build_udev_kms ? '1' : false)
|
||||
|
||||
configure_file(output : 'dix-config.h',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue