diff --git a/sys/modules/Makefile b/sys/modules/Makefile --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -582,7 +582,9 @@ _gve= gve _igc= igc # gcc13 and earlier lack __builtin_bitcountg used by linux emulation -.if !(${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} < 140000) +# clang18 and earlier lack __builtin_popcountg used by linux emulation +.if !(${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} < 140000) && \ + !(${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 190000) _iwlwifi= iwlwifi .endif _rtw88= rtw88