From 8015e7817b505d15845c33f13c24ad55c561c8df Mon Sep 17 00:00:00 2001 From: David Höppner <0xffea@gmail.com> Date: Tue, 1 Jan 2013 09:12:37 +0000 Subject: Fix compilation warning implicit function declaration kdbprintf When kernel debugger support is requested ipc and vm need the prototype for the debugger function kdbprintf. * ddb/db_output.h: Add prototype for kdbprintf. * ipc/ipc_object.c: Add include file ddb/db_output.h * ipc/ipc_port.c: Likewise. * ipc/ipc_pset.c: Likewise. * vm/vm_map.c: Likewise. * vm/vm_object.c: Likewise. * vm/vm_resident.c: Likewise. --- vm/vm_map.c | 5 +++++ vm/vm_object.c | 4 ++++ vm/vm_resident.c | 5 +++++ 3 files changed, 14 insertions(+) (limited to 'vm') diff --git a/vm/vm_map.c b/vm/vm_map.c index 22fa836..47db118 100644 --- a/vm/vm_map.c +++ b/vm/vm_map.c @@ -53,6 +53,11 @@ #include #include +#if MACH_KDB +#include +#endif /* MACH_KDB */ + + /* Forward declarations */ kern_return_t vm_map_delete( vm_map_t map, diff --git a/vm/vm_object.c b/vm/vm_object.c index 7eae3d7..d83c39f 100644 --- a/vm/vm_object.c +++ b/vm/vm_object.c @@ -55,6 +55,10 @@ #include #include +#if MACH_KDB +#include +#endif /* MACH_KDB */ + void memory_object_release( ipc_port_t pager, diff --git a/vm/vm_resident.c b/vm/vm_resident.c index 581a9c4..7cf4fb1 100644 --- a/vm/vm_resident.c +++ b/vm/vm_resident.c @@ -58,6 +58,11 @@ #include #endif +#if MACH_KDB +#include +#endif /* MACH_KDB */ + + /* * Associated with eacn page of user-allocatable memory is a * page structure. -- cgit v1.2.3