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:
parent
0bd052ba12
commit
62b7f6a139
@ -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
|
||||
|
@ -766,6 +766,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1629,
|
||||
/**/
|
||||
1628,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user