Skip to content
Commit f78bb4d8 authored by Hafiz Abid Qadeer's avatar Hafiz Abid Qadeer Committed by Louis Dionne
Browse files

[libc++] Check _LIBCPP_USE_CLOCK_GETTIME before using clock_gettime

The clock_gettime function is available when _POSIX_TIMERS is defined.
We check for this and set _LIBCPP_USE_CLOCK_GETTIME accordingly since
59b31027. But check for _LIBCPP_USE_CLOCK_GETTIME was removed in
babd3aef. As a result, code is now trying to use clock_gettime even
on platforms where it is not available and it is causing build failure
with newlib.

This patch restores the checks to fix this.

Differential Revision: https://reviews.llvm.org/D88825
parent 53bf28b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment