Skip to content

bsd_init.c: fix build on FreeBSD

Alan Coopersmith requested to merge alanc/xserver:freebsd into master

Commit 0d4a7ed6 put the definition of pcvt_version inside #ifdef __NetBSD__ but left one use of it outside of the ifdefs, resulting in a build failure on FreeBSD 14.0 in the gitlab CI for xf86-input-keyboard.

../hw/xfree86/os-support/bsd/bsd_init.c:540:21:
  error: use of undeclared identifier 'pcvt_version'
                    pcvt_version.rmajor, pcvt_version.rminor);
                    ^
../hw/xfree86/os-support/bsd/bsd_init.c:540:42:
  error: use of undeclared identifier 'pcvt_version'
                    pcvt_version.rmajor, pcvt_version.rminor);
                                         ^

Fixes: 0d4a7ed6 ("bsd_init.c: fix build on OpenBSD") from !1302 (merged)

Merge request reports