|
@@ -571,6 +571,7 @@ void os_closedir(os_dir_t *dir)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#ifndef __APPLE__
|
|
int64_t os_get_free_space(const char *path)
|
|
int64_t os_get_free_space(const char *path)
|
|
{
|
|
{
|
|
struct statvfs info;
|
|
struct statvfs info;
|
|
@@ -581,6 +582,7 @@ int64_t os_get_free_space(const char *path)
|
|
|
|
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
struct posix_glob_info {
|
|
struct posix_glob_info {
|
|
struct os_glob_info base;
|
|
struct os_glob_info base;
|
|
@@ -1136,6 +1138,7 @@ uint64_t os_get_sys_total_size(void)
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#ifndef __APPLE__
|
|
uint64_t os_get_free_disk_space(const char *dir)
|
|
uint64_t os_get_free_disk_space(const char *dir)
|
|
{
|
|
{
|
|
struct statvfs info;
|
|
struct statvfs info;
|
|
@@ -1144,6 +1147,7 @@ uint64_t os_get_free_disk_space(const char *dir)
|
|
|
|
|
|
return (uint64_t)info.f_frsize * (uint64_t)info.f_bavail;
|
|
return (uint64_t)info.f_frsize * (uint64_t)info.f_bavail;
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
char *os_generate_uuid(void)
|
|
char *os_generate_uuid(void)
|
|
{
|
|
{
|