summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
Diffstat (limited to 'vm')
-rw-r--r--vm/vm_fault.c1
-rw-r--r--vm/vm_map.c3
-rw-r--r--vm/vm_object.c2
-rw-r--r--vm/vm_resident.c1
4 files changed, 4 insertions, 3 deletions
diff --git a/vm/vm_fault.c b/vm/vm_fault.c
index b757208..0506e0a 100644
--- a/vm/vm_fault.c
+++ b/vm/vm_fault.c
@@ -33,6 +33,7 @@
* Page fault handling module.
*/
+#include <printf.h>
#include <vm/vm_fault.h>
#include <mach/kern_return.h>
#include <mach/message.h> /* for error codes */
diff --git a/vm/vm_map.c b/vm/vm_map.c
index 193146c..71de048 100644
--- a/vm/vm_map.c
+++ b/vm/vm_map.c
@@ -34,6 +34,7 @@
* Virtual memory mapping module.
*/
+#include <printf.h>
#include <mach/kern_return.h>
#include <mach/port.h>
#include <mach/vm_attributes.h>
@@ -4688,7 +4689,6 @@ void vm_map_print(map)
register vm_map_t map;
{
register vm_map_entry_t entry;
- extern int indent;
iprintf("Task map 0x%X: pmap=0x%X,",
(vm_offset_t) map, (vm_offset_t) (map->pmap));
@@ -4756,7 +4756,6 @@ void vm_map_print(map)
void vm_map_copy_print(copy)
vm_map_copy_t copy;
{
- extern int indent;
int i, npages;
printf("copy object 0x%x\n", copy);
diff --git a/vm/vm_object.c b/vm/vm_object.c
index 7d00fbe..0e8a514 100644
--- a/vm/vm_object.c
+++ b/vm/vm_object.c
@@ -33,6 +33,7 @@
* Virtual memory object module.
*/
+#include <printf.h>
#include <string.h>
#include <mach/memory_object.h>
@@ -2969,7 +2970,6 @@ void vm_object_print(
vm_object_t object)
{
register vm_page_t p;
- extern indent;
register int count;
diff --git a/vm/vm_resident.c b/vm/vm_resident.c
index 2c99ab5..2b5ecee 100644
--- a/vm/vm_resident.c
+++ b/vm/vm_resident.c
@@ -33,6 +33,7 @@
* Resident memory management module.
*/
+#include <printf.h>
#include <string.h>
#include <mach/vm_prot.h>