diff options
-rw-r--r-- | sys/miscfs/procfs/procfs_vfsops.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/miscfs/procfs/procfs_vfsops.c b/sys/miscfs/procfs/procfs_vfsops.c index c9bbc2751d8..8ed90970b04 100644 --- a/sys/miscfs/procfs/procfs_vfsops.c +++ b/sys/miscfs/procfs/procfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procfs_vfsops.c,v 1.8 1998/02/08 22:41:40 tholo Exp $ */ +/* $OpenBSD: procfs_vfsops.c,v 1.9 1999/02/26 03:47:46 art Exp $ */ /* $NetBSD: procfs_vfsops.c,v 1.25 1996/02/09 22:40:53 christos Exp $ */ /* @@ -57,6 +57,10 @@ #include <miscfs/procfs/procfs.h> #include <vm/vm.h> /* for PAGE_SIZE */ +#if defined(UVM) +#include <uvm/uvm_extern.h> +#endif + int procfs_mount __P((struct mount *, const char *, caddr_t, struct nameidata *, struct proc *)); int procfs_start __P((struct mount *, int, struct proc *)); @@ -154,7 +158,11 @@ procfs_statfs(mp, sbp, p) { struct vmtotal vmtotals; +#if defined(UVM) + uvm_total(&vmtotals); +#else vmtotal(&vmtotals); +#endif #ifdef COMPAT_09 sbp->f_type = 10; #else |