diff options
author | Martin Storsjö <martin@martin.st> | 2020-11-04 23:32:13 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2021-02-02 19:48:24 +0200 |
commit | a3cc99658d52f79faad26beeea06691b3a50bc95 (patch) | |
tree | dd2f9d4cadac83009db867bfa43cf4b70fc957e3 /libcxx/src/filesystem/operations.cpp | |
parent | 57bfa2ddb6bf1f1814295a2423258fdd46cb702c (diff) | |
download | llvm-a3cc99658d52f79faad26beeea06691b3a50bc95.zip llvm-a3cc99658d52f79faad26beeea06691b3a50bc95.tar.gz llvm-a3cc99658d52f79faad26beeea06691b3a50bc95.tar.bz2 |
[libcxx] Implement the space function for windows
Differential Revision: https://reviews.llvm.org/D91168
Diffstat (limited to 'libcxx/src/filesystem/operations.cpp')
-rw-r--r-- | libcxx/src/filesystem/operations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/filesystem/operations.cpp b/libcxx/src/filesystem/operations.cpp index ddb4d75..fcb5c2d 100644 --- a/libcxx/src/filesystem/operations.cpp +++ b/libcxx/src/filesystem/operations.cpp @@ -1301,8 +1301,8 @@ void __resize_file(const path& p, uintmax_t size, error_code* ec) { space_info __space(const path& p, error_code* ec) { ErrorHandler<void> err("space", ec, &p); space_info si; - struct statvfs m_svfs = {}; - if (::statvfs(p.c_str(), &m_svfs) == -1) { + detail::StatVFS m_svfs = {}; + if (detail::statvfs(p.c_str(), &m_svfs) == -1) { err.report(capture_errno()); si.capacity = si.free = si.available = static_cast<uintmax_t>(-1); return si; |