diff options
author | Eric Jackson <ericj@cvs.openbsd.org> | 2000-08-15 02:44:13 +0000 |
---|---|---|
committer | Eric Jackson <ericj@cvs.openbsd.org> | 2000-08-15 02:44:13 +0000 |
commit | 225ccc5ce4902f31db4ff8e9d176e22252582307 (patch) | |
tree | 26cf69d73921f6da9a7578a428f084edead19ca3 /sys/miscfs | |
parent | e521ce0f6a89f7afec3ed4476478a083c1e06e9a (diff) |
make procfs compile on non-uvm systems
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/procfs/procfs.h | 6 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_mem.c | 6 |
2 files changed, 7 insertions, 5 deletions
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; |