gettime: Fix compilation on non-Linux with pthread_getaffinity_np()
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 25 Apr 2021 15:10:40 +0000 (00:10 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 25 Apr 2021 15:15:07 +0000 (00:15 +0900)
commite9d2a04d1278ce02140a8b8da4d5aede7a6ad39d
tree1481fd25e4ae16e670851622fe1c1954ae3af138
parent14691a4df98b85621b07dd2bdc0f0a960acbb8ba
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 <kusumi.tomohiro@gmail.com>
gettime.c
os/os-aix.h
os/os-android.h
os/os-dragonfly.h
os/os-freebsd.h
os/os-hpux.h
os/os-linux.h
os/os-mac.h
os/os-netbsd.h
os/os-openbsd.h
os/os-solaris.h