comparison src/os_unix.c @ 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 601d797cca88
children 03224283bafc
comparison
equal deleted inserted replaced
13510:eaa554820c4a 13511:8db9449b5c79
601 mem = (long_u)(vm_stat.free_count + vm_stat.active_count 601 mem = (long_u)(vm_stat.free_count + vm_stat.active_count
602 + vm_stat.inactive_count 602 + vm_stat.inactive_count
603 # ifdef MAC_OS_X_VERSION_10_9 603 # ifdef MAC_OS_X_VERSION_10_9
604 + vm_stat.compressor_page_count 604 + vm_stat.compressor_page_count
605 # endif 605 # endif
606 ) * getpagesize(); 606 ) * sysconf(_SC_PAGESIZE);
607 mach_port_deallocate(mach_task_self(), host); 607 mach_port_deallocate(mach_task_self(), host);
608 } 608 }
609 # endif 609 # endif
610 610
611 # ifdef HAVE_SYSCTL 611 # ifdef HAVE_SYSCTL