summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-07-27 23:58:34 +0800
committerGitHub <[email protected]>2022-07-27 23:58:34 +0800
commitf1f6f196cf5c9acf8d3805b808f08da3ac9d5b4f (patch)
treef7aec597af901adb06e8ad8e065383c7c78bd0c5
parentd0adfab467cb037947e04517063cf2c650c57e36 (diff)
Update meminfo.c
-rw-r--r--core/src/xmake/os/meminfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/os/meminfo.c b/core/src/xmake/os/meminfo.c
index 29741a2b7..5fc877831 100644
--- a/core/src/xmake/os/meminfo.c
+++ b/core/src/xmake/os/meminfo.c
@@ -54,7 +54,7 @@ static tb_int64_t xm_os_meminfo_get_value(tb_char_t const* buffer, tb_char_t con
static tb_bool_t xm_os_meminfo_stats(tb_int_t* ptotalsize, tb_int_t* pavailsize)
{
#if defined(TB_CONFIG_OS_MACOSX)
- statistics64_data_t vmstat;
+ vm_statistics64_data_t vmstat;
mach_msg_type_number_t count = HOST_VM_INFO64_COUNT;
if (host_statistics64(mach_host_self(), HOST_VM_INFO64, (host_info_t) &vmstat, &count) == KERN_SUCCESS)
{