From 52a357dbf3dcb726de55a3ccb6b528ecb61cc9c4 Mon Sep 17 00:00:00 2001 From: b-aaz <85005689+b-aaz@users.noreply.github.com> Date: Sun, 14 Sep 2025 20:10:31 +0000 Subject: [PATCH] xfree86: os-support: Deal with DFBSD correctly. In DragonFlyBSD the host_machine.system() variable is set to 'dragonfly' and does not end with 'bsd'. Changed a check to correctly detect 'dragonfly' as a member of BSD OSs. bsd/bsd_kmod.c is used for dealing with kernel modules on FreeBSD, enabled this file for DragonFlyBSD too, because they both have the same APIs in this context. Signed-off-by: b-aaz --- hw/xfree86/os-support/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/os-support/meson.build b/hw/xfree86/os-support/meson.build index c312162f31..c71956fd15 100644 --- a/hw/xfree86/os-support/meson.build +++ b/hw/xfree86/os-support/meson.build @@ -92,7 +92,7 @@ elif host_machine.system() == 'sunos' error('Unknown CPU family for Solaris build') endif -elif host_machine.system().endswith('bsd') +elif host_machine.system().endswith('bsd') or host_machine.system() == 'dragonfly' srcs_xorg_os_support += [ 'bsd/bsd_VTsw.c', 'bsd/bsd_bell.c', @@ -129,7 +129,7 @@ elif host_machine.system().endswith('bsd') endif endif - if host_machine.system() == 'freebsd' + if host_machine.system() == 'freebsd' or host_machine.system() == 'dragonfly' srcs_xorg_os_support += 'bsd/bsd_kmod.c' else srcs_xorg_os_support += 'shared/kmod_noop.c'