summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-12-05 20:54:42 +0000
committerBruce Evans <bde@FreeBSD.org>1995-12-05 20:54:42 +0000
commit0ff89d5b0340cda09b725c3900d40628215a1a5f (patch)
treec49cfb45f139843040ec9dafb0b4dada9993e778
parentd74abd402909fd4cf856edc1dede16bdbe688023 (diff)
Notes
-rw-r--r--sys/sys/types.h7
-rw-r--r--sys/vm/vm.h8
2 files changed, 13 insertions, 2 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h
index 639f3cf2aa42..27e8c973bca0 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)types.h 8.4 (Berkeley) 1/21/94
- * $Id: types.h,v 1.4 1994/09/25 15:56:25 davidg Exp $
+ * $Id: types.h,v 1.5 1995/06/28 01:39:50 bde Exp $
*/
#ifndef _SYS_TYPES_H_
@@ -75,6 +75,11 @@ typedef long segsz_t; /* segment size */
typedef long swblk_t; /* swap offset */
typedef unsigned long uid_t; /* user id */
+#ifdef KERNEL
+struct vm_page;
+typedef struct vm_page *vm_page_t;
+#endif
+
/*
* This belongs in unistd.h, but is placed here to ensure that programs
* casting the second parameter of lseek to off_t will get the correct
diff --git a/sys/vm/vm.h b/sys/vm/vm.h
index 5e90be692c7a..e591b2952a78 100644
--- a/sys/vm/vm.h
+++ b/sys/vm/vm.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vm.h 8.2 (Berkeley) 12/13/93
- * $Id: vm.h,v 1.5 1995/07/13 08:48:18 davidg Exp $
+ * $Id: vm.h,v 1.6 1995/10/05 01:11:48 bde Exp $
*/
#ifndef VM_H
@@ -51,8 +51,14 @@ typedef struct vm_map *vm_map_t;
struct vm_object;
typedef struct vm_object *vm_object_t;
+#ifndef KERNEL
+/*
+ * This is defined in <sys/types.h> for the kernel so that vnode_if.h
+ * doesn't have to include <vm/vm.h>.
+ */
struct vm_page;
typedef struct vm_page *vm_page_t;
+#endif
#include <sys/vmmeter.h>
#include <sys/queue.h>