From ecb9b01b9645f28c6e6cf4b729d1a6ec9ff62870 Mon Sep 17 00:00:00 2001 From: Gammasoft Date: Mon, 1 Jan 2024 21:10:52 +0100 Subject: [PATCH] Fix build --- src/xtd.core.native.unix/src/xtd/native/unix/drive.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xtd.core.native.unix/src/xtd/native/unix/drive.cpp b/src/xtd.core.native.unix/src/xtd/native/unix/drive.cpp index 5bad8b97344e..d220bdc0733e 100644 --- a/src/xtd.core.native.unix/src/xtd/native/unix/drive.cpp +++ b/src/xtd.core.native.unix/src/xtd/native/unix/drive.cpp @@ -86,8 +86,8 @@ std::vector drive::get_drives() { } bool drive::get_volume_information(const std::string& root_path_name, std::string& volume_name, std::string& file_system_name) { - struct statvfs stat; - if (statvfs(root_path_name.c_str(), &stat) != 0) + struct statfs stat; + if (statfs(root_path_name.c_str(), &stat) != 0) return false; volume_name = root_path_name;