From 225761e54ade0ca0033820c9abfcf6feb0b61c40 Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Fri, 2 Oct 2015 12:39:19 -0400 Subject: [PATCH] Remov use of v_cache_min/max These were removed in svn r287640 (aka https://github.com/freebsd/freebsd/commit/34116761ffee1d709025cfb04b2209d8fc100314 ) but no __FreeBSD_version bump was done specifically for it, so use the closest one. --- src/os/darwin/darwin_sigar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index ae9fd117c..e53a01308 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -400,8 +400,10 @@ static int sigar_vmstat(sigar_t *sigar, struct vmmeter *vmstat) GET_VM_STATS(vm, v_inactive_target, 0); GET_VM_STATS(vm, v_inactive_count, 1); GET_VM_STATS(vm, v_cache_count, 1); +#if (__FreeBSD_version < 1100079 ) GET_VM_STATS(vm, v_cache_min, 0); GET_VM_STATS(vm, v_cache_max, 0); +#endif GET_VM_STATS(vm, v_pageout_free_min, 0); GET_VM_STATS(vm, v_interrupt_free_min, 0); GET_VM_STATS(vm, v_forks, 0);