diff --git a/meson.build b/meson.build index 23380319cc5..965e14ff2e9 100644 --- a/meson.build +++ b/meson.build @@ -1400,7 +1400,7 @@ endif dep_thread = dependency('threads') if dep_thread.found() and host_machine.system() != 'windows' pre_args += '-DHAVE_PTHREAD' - if cc.has_function( + if host_machine.system() != 'netbsd' and cc.has_function( 'pthread_setaffinity_np', dependencies : dep_thread, prefix : '#include ',