diff options
author | Petr Hosek <phosek@google.com> | 2024-12-17 08:16:55 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-17 08:16:55 -0800 |
commit | edf9439e00971b55bae19e40ef6a8e132645a56a (patch) | |
tree | 57751d1995c6b05245ac546764ddcfedd65bbb25 /libcxx/src/fstream.cpp | |
parent | 62bd10f7d18ca6f544286767cae2c9026d493888 (diff) | |
download | llvm-edf9439e00971b55bae19e40ef6a8e132645a56a.zip llvm-edf9439e00971b55bae19e40ef6a8e132645a56a.tar.gz llvm-edf9439e00971b55bae19e40ef6a8e132645a56a.tar.bz2 |
[libcxx] Support for using timespec_get (#117362)
clock_gettime is a POSIX API that may not be available on platforms like
baremetal; timespec_get is the C11 equivalent. This change adds support
for using timespec_get instead of clock_gettime to improve compatibility
with non-POSIX platforms. For now, this is only enabled with LLVM libc
which implemented timespec_get in #116102, but in the future this can be
expanded to other platforms.
Related to #84879.
Diffstat (limited to 'libcxx/src/fstream.cpp')
0 files changed, 0 insertions, 0 deletions