[libcxx] Implement the space function for windows

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

GitOrigin-RevId: a3cc99658d52f79faad26beeea06691b3a50bc95
diff --git a/src/filesystem/operations.cpp b/src/filesystem/operations.cpp
index ddb4d75..fcb5c2d 100644
--- a/src/filesystem/operations.cpp
+++ b/src/filesystem/operations.cpp
@@ -1301,8 +1301,8 @@
 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;