diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/common/kern_info_43.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/compat/common/kern_info_43.c b/sys/compat/common/kern_info_43.c index e54026eddda..dae4b926ebf 100644 --- a/sys/compat/common/kern_info_43.c +++ b/sys/compat/common/kern_info_43.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_info_43.c,v 1.8 1998/02/22 22:00:11 niklas Exp $ */ +/* $OpenBSD: kern_info_43.c,v 1.9 1999/02/26 04:09:47 art Exp $ */ /* $NetBSD: kern_info_43.c,v 1.5 1996/02/04 02:02:22 christos Exp $ */ /* @@ -246,13 +246,21 @@ compat_43_sys_getkerninfo(p, v, retval) case KINFO_METER: name[0] = VM_METER; error = +#if defined(UVM) + uvm_sysctl(name, 1, SCARG(uap, where), &size, NULL, 0, p); +#else vm_sysctl(name, 1, SCARG(uap, where), &size, NULL, 0, p); +#endif break; case KINFO_LOADAVG: name[0] = VM_LOADAVG; error = +#if defined(UVM) + uvm_sysctl(name, 1, SCARG(uap, where), &size, NULL, 0, p); +#else vm_sysctl(name, 1, SCARG(uap, where), &size, NULL, 0, p); +#endif break; case KINFO_CLOCKRATE: |