Skip to content

util: Avoid pthread_setaffinity_np on NetBSD

nia requested to merge nia/mesa:netbsd-setaffinity into master

NetBSD's variant of this non-portable function has a different prototype from the Linux version the code expects. It could make sense to add support for NetBSD's version, however, since NetBSD defaults to disallowing non-root users to set processor affinity, there would be little gain here.

This is a build fix for NetBSD.

Edited by nia

Merge request reports