Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 62b7f6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/os_unix.c
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -766,6 +766,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1629,
/**/
1628,
/**/
Expand Down

0 comments on commit 62b7f6a

Please sign in to comment.