changeset 13511:8db9449b5c79 v8.0.1629

patch 8.0.1629: Mac: getpagesize() is deprecated commit https://github.com/vim/vim/commit/62b7f6a139a19eb6c79eb428c66a7118e9741b5d Author: Bram Moolenaar <Bram@vim.org> 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)
author Christian Brabandt <cb@256bit.org>
date Thu, 22 Mar 2018 21:45:06 +0100
parents eaa554820c4a
children 511cb52e0aa8
files src/os_unix.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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,