summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-10 02:34:29 +0000
committerbde <bde@FreeBSD.org>1995-12-10 02:34:29 +0000
commitc951d0b363e6ac5802752da9aa7c261249dc4406 (patch)
tree3d7ceb02526b0fb72c3aa608283489214759e24c /sys/vm/vm.h
parent7c400f9c2b837036e34b796ee3aee421dbf760e2 (diff)
downloadFreeBSD-src-c951d0b363e6ac5802752da9aa7c261249dc4406.zip
FreeBSD-src-c951d0b363e6ac5802752da9aa7c261249dc4406.tar.gz
Moved the declaration of boolean_t from <vm/vm_param.h> to
<sys/types.h> (if KERNEL is defined). This allows removing bogus dependencies on vm stuff in several places (e.g., ddb) and stops <vm_param.h> from depending on <vm_param.h> Added declaration of boolean_t to <vm/vm.h> (if KERNEL is not defined). It never belonged in <vm/vm_param.h>. Unfortunately, it is required for some vm headers that are included by applications. Deleted declarations of TRUE and FALSE from <vm/vm_param.h>. They are defined in <sys/param.h> if KERNEL is defined and we'll soon find out if any applications depend on them being defined in a vm header.
Diffstat (limited to 'sys/vm/vm.h')
-rw-r--r--sys/vm/vm.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/vm/vm.h b/sys/vm/vm.h
index f56dd1b..eba8b3e 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.7 1995/12/05 20:54:42 bde Exp $
+ * $Id: vm.h,v 1.8 1995/12/07 12:48:07 davidg Exp $
*/
#ifndef VM_H
@@ -54,6 +54,15 @@ typedef struct vm_object *vm_object_t;
#ifndef KERNEL
/*
+ * This is defined in <sys/types.h> for the kernel so that non-vm kernel
+ * sources (mainly Mach-derived ones such as ddb) don't have to include
+ * vm stuff. Defining it there for applications might break things.
+ * Define it here for "applications" that include vm headers (e.g.,
+ * genassym).
+ */
+typedef int boolean_t;
+
+/*
* This is defined in <sys/types.h> for the kernel so that vnode_if.h
* doesn't have to include <vm/vm.h>.
*/
OpenPOWER on IntegriCloud