# HG changeset patch # User Christian Brabandt # Date 1521751506 -3600 # Node ID 8db9449b5c7944a7d7798c0c92923e5a3cb10c2a # Parent eaa554820c4a077d831e5db2ac1856c7d607af12 patch 8.0.1629: Mac: getpagesize() is deprecated commit https://github.com/vim/vim/commit/62b7f6a139a19eb6c79eb428c66a7118e9741b5d Author: Bram Moolenaar Date: Thu Mar 22 21:44:07 2018 +0100 patch 8.0.1629: Mac: getpagesize() is deprecated Problem: Mac: getpagesize() is deprecated. Solution: Use sysconf() instead. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/2741) diff --git a/src/os_unix.c b/src/os_unix.c --- a/src/os_unix.c +++ b/src/os_unix.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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1629, +/**/ 1628, /**/ 1627,