Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
posix.time: predicate clock_getres et.al. on _POSIX_TIMERS.
Close #295. musl libc implements clock_getres and clock_gettime, and defines _POSIX_TIMERS, but does not declare _XOPEN_REALTIME because it does not implement the whole realtime API. * lukefile (modules['posix.time'].libraries): Use _POSIX_TIMERS, which is a subset of _XOPEN_REALTIME sufficient for clock_getres and clock_gettime in the host libc. * ext/posix/time.c (CLOCK_MONOTONIC, CLOCK_PROCESS_CPUTIME_ID) (CLOCK_REALTIME, Pclock_getres, Pclock_gettime): Change preprocessor guards from _XOPEN_REALTIME to _POSIX_TIMERS. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
- Loading branch information