From: Tomohiro Kusumi Date: Sun, 25 Apr 2021 15:10:40 +0000 (+0900) Subject: gettime: Fix compilation on non-Linux with pthread_getaffinity_np() X-Git-Tag: fio-3.27~16^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e9d2a04d1278ce02140a8b8da4d5aede7a6ad39d;hp=e9d2a04d1278ce02140a8b8da4d5aede7a6ad39d;p=fio.git gettime: Fix compilation on non-Linux with pthread_getaffinity_np() 874d55e50c("os/os-linux: add pthread CPU affinity helper") and a few commits after that broke compilation on non-Linux platforms which support pthread_getaffinity_np(). Define fio_get_thread_affinity() on non-Linux platforms, and make gettime test FIO_HAVE_GET_THREAD_AFFINITY which may or may not depend on pthread. FIO_HAVE_GET_THREAD_AFFINITY is currently not defined on Windows. Signed-off-by: Tomohiro Kusumi ---