0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -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:
Bram Moolenaar 2018-03-22 21:44:07 +01:00
parent 0bd052ba12
commit 62b7f6a139
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -766,6 +766,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1629,
/**/
1628,
/**/