[libc++] Avoid including things that require a filesystem in filesytem_clock.cpp
authorLouis Dionne <ldionne.2@gmail.com>
Mon, 3 Jul 2023 20:55:30 +0000 (16:55 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Tue, 4 Jul 2023 18:29:00 +0000 (14:29 -0400)
commitba3619b9273f38572fc797584b316d117938f760
tree1d99e51e4b0e7a9630674096830ddb93fa7e98c0
parented9cb663765c3f8b5af22dd6a8af1715a20d4626
[libc++] Avoid including things that require a filesystem in filesytem_clock.cpp

The filesystem clock implementation should be available regardless of
whether a proper filesystem is available on the platform, so it makes
sense to try and avoid including things that are inherently filesystem-y
in the implementation of filesystem clock.

Differential Revision: https://reviews.llvm.org/D154390
libcxx/src/filesystem/file_descriptor.h
libcxx/src/filesystem/filesystem_clock.cpp
libcxx/src/filesystem/posix_compat.h
libcxx/src/filesystem/time_utils.h