Skip to content

Commit 62b7f6a

Browse files
committed
patch 8.0.1629: Mac: getpagesize() is deprecated
Problem: Mac: getpagesize() is deprecated. Solution: Use sysconf() instead. (Ozaki Kiichi, closes #2741)
1 parent 0bd052b commit 62b7f6a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/os_unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ mch_total_mem(int special UNUSED)
603603
# ifdef MAC_OS_X_VERSION_10_9
604604
+ vm_stat.compressor_page_count
605605
# endif
606-
) * getpagesize();
606+
) * sysconf(_SC_PAGESIZE);
607607
mach_port_deallocate(mach_task_self(), host);
608608
}
609609
# endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ static char *(features[]) =
766766

767767
static int included_patches[] =
768768
{ /* Add new patch number below this line */
769+
/**/
770+
1629,
769771
/**/
770772
1628,
771773
/**/

0 commit comments

Comments
 (0)