commit | 62b7f6a139a19eb6c79eb428c66a7118e9741b5d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Mar 22 21:44:07 2018 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Mar 22 21:44:07 2018 +0100 |
tree | 8c862d6040d3f92cfa8b597e1e2b5366f1f81a46 | |
parent | 0bd052ba12f672b46415ed1d5d1d2597a326f85a [diff] [blame] |
patch 8.0.1629: Mac: getpagesize() is deprecated Problem: Mac: getpagesize() is deprecated. Solution: Use sysconf() instead. (Ozaki Kiichi, closes #2741)
diff --git a/src/os_unix.c b/src/os_unix.c index e0bc3de..b811ac3 100644 --- a/src/os_unix.c +++ b/src/os_unix.c
@@ -603,7 +603,7 @@ # 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