`clock_nanosleep` is defined by libc only for Linux, Fuchsia, Android and Solaris, despite being supported by most Unix OSs (not macos).