Permalink
Browse files

patch 8.0.1629: Mac: getpagesize() is deprecated

Problem:    Mac: getpagesize() is deprecated.
Solution:   Use sysconf() instead. (Ozaki Kiichi, closes #2741)
  • Loading branch information...
brammool committed Mar 22, 2018
1 parent 0bd052b commit 62b7f6a139a19eb6c79eb428c66a7118e9741b5d
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/os_unix.c
  2. +2 −0 src/version.c
@@ -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,
/**/

0 comments on commit 62b7f6a

Please sign in to comment.