From 225ccc5ce4902f31db4ff8e9d176e22252582307 Mon Sep 17 00:00:00 2001 From: Eric Jackson Date: Tue, 15 Aug 2000 02:44:13 +0000 Subject: make procfs compile on non-uvm systems --- sys/miscfs/procfs/procfs.h | 6 +++++- sys/miscfs/procfs/procfs_mem.c | 6 ++---- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'sys/miscfs') diff --git a/sys/miscfs/procfs/procfs.h b/sys/miscfs/procfs/procfs.h index 397872f18e5..aa648a03e42 100644 --- a/sys/miscfs/procfs/procfs.h +++ b/sys/miscfs/procfs/procfs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: procfs.h,v 1.9 2000/08/12 04:29:24 jasoni Exp $ */ +/* $OpenBSD: procfs.h,v 1.10 2000/08/15 02:44:12 ericj Exp $ */ /* $NetBSD: procfs.h,v 1.17 1996/02/12 15:01:41 christos Exp $ */ /* @@ -117,6 +117,10 @@ int procfs_docmdline __P((struct proc *, struct proc *, struct pfsnode *pfsp, st struct vnode *procfs_findtextvp __P((struct proc *)); int procfs_freevp __P((struct vnode *)); +#if !defined(UVM) +int procfs_rwmem __P((struct proc *, struct uio *)); +#endif + /* functions to check whether or not files should be displayed */ int procfs_validfile __P((struct proc *)); int procfs_validfpregs __P((struct proc *)); diff --git a/sys/miscfs/procfs/procfs_mem.c b/sys/miscfs/procfs/procfs_mem.c index a54b44d7293..baad123deb7 100644 --- a/sys/miscfs/procfs/procfs_mem.c +++ b/sys/miscfs/procfs/procfs_mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procfs_mem.c,v 1.9 1999/02/26 03:46:25 art Exp $ */ +/* $OpenBSD: procfs_mem.c,v 1.10 2000/08/15 02:44:12 ericj Exp $ */ /* $NetBSD: procfs_mem.c,v 1.8 1996/02/09 22:40:50 christos Exp $ */ /* @@ -64,9 +64,7 @@ #define ISSET(t, f) ((t) & (f)) #if !defined(UVM) -static int procfs_rwmem __P((struct proc *, struct uio *)); - -static int +int procfs_rwmem(p, uio) struct proc *p; struct uio *uio; -- cgit v1.2.3