mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.1629: Mac: getpagesize() is deprecated
Problem: Mac: getpagesize() is deprecated. Solution: Use sysconf() instead. (Ozaki Kiichi, closes #2741)
This commit is contained in:
@@ -603,7 +603,7 @@ mch_total_mem(int special UNUSED)
|
||||
# ifdef MAC_OS_X_VERSION_10_9
|
||||
+ vm_stat.compressor_page_count
|
||||
# endif
|
||||
) * getpagesize();
|
||||
) * sysconf(_SC_PAGESIZE);
|
||||
mach_port_deallocate(mach_task_self(), host);
|
||||
}
|
||||
# endif
|
||||
|
Reference in New Issue
Block a user