Make it compiles on BSD

2 jobs for master
Status Job ID Name Coverage
  Build
canceled #88731
build_clazy_clang_tidy

canceled #88730
linux kf5-qt5 qt5.15