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 <b-aazbsd@proton.me>
This commit is contained in:
b-aaz
2025-09-14 20:10:31 +00:00
committed by Enrico Weigelt
parent 77b396d09b
commit 52a357dbf3

View File

@@ -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'