windows: drop nanosleep and clock_gettime
authorVincent Fu <vincent.fu@samsung.com>
Mon, 23 Jun 2025 16:29:43 +0000 (12:29 -0400)
committerVincent Fu <vincent.fu@samsung.com>
Mon, 23 Jun 2025 19:04:34 +0000 (15:04 -0400)
commit7037b833e175aae32900b73bf597aad08c1d8472
tree22ba3aec737cd50e5d860f09947f13577b626a8e
parent538db2e2acdb2948fe2fcb9a23c9067e9d97dd2b
windows: drop nanosleep and clock_gettime

Cygwin and msys2 now provide nanosleep and clock_gettime, so fio no
longer needs to implement them. The presence of our implementations was
triggering build failures:

https://github.com/axboe/fio/actions/runs/15828051168

Since fio no longer provides clock_gettime, stop unconditionally setting
clock_gettime and clock_monotonic to yes on Windows and start detectinga
these features at build time. These two features are successfully
detected by our configure script:

https://github.com/vincentkfu/fio/actions/runs/15832278184

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
configure
os/os-windows.h
os/windows/posix.c
os/windows/posix.h