[libc++] Fix GNU/Hurd build
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 25 Aug 2023 17:53:20 +0000 (19:53 +0200)
committerTobias Hieta <tobias@hieta.se>
Sun, 27 Aug 2023 08:56:20 +0000 (10:56 +0200)
commit0ec768e415b7468a66ab53fcbb78649a1d2474a8
tree077b6a61820721e557e708947cfa012e9a44b7d9
parentef7421f3f74b44d78886d9e5e0891384251b20a0
[libc++] Fix GNU/Hurd build

GNU/Hurd does have clock_gettime, it just doesn't define _POSIX_TIMERS because its support for timers is not complete.

Reviewed By: #libc, Mordante

Differential Revision: https://reviews.llvm.org/D158584

(cherry picked from commit 1cfcc36812ff7857567f7c729c22ae0e2be0fb3a)
libcxx/src/chrono.cpp
libcxx/src/filesystem/filesystem_clock.cpp