From 2029728ed6d2a88350be945a892d325aebc2eb8d Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 17 Jan 2023 23:56:04 -0500 Subject: Include mig generated headers to avoid warnings with -Wmissing-prototypes. This also reverts 566c227636481b246d928772ebeaacbc7c37145b and 963b1794d7117064cee8ab5638b329db51dad854 Message-Id: --- kern/ipc_tt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'kern/ipc_tt.c') diff --git a/kern/ipc_tt.c b/kern/ipc_tt.c index 63f6e77a..7c9a0b8d 100644 --- a/kern/ipc_tt.c +++ b/kern/ipc_tt.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include @@ -888,7 +889,7 @@ mach_ports_register( kern_return_t mach_ports_lookup( task_t task, - ipc_port_t **portsp, + mach_port_t **portsp, mach_msg_type_number_t *portsCnt) { vm_offset_t memory; @@ -925,7 +926,7 @@ mach_ports_lookup( itk_unlock(task); - *portsp = ports; + *portsp = (mach_port_t *)ports; *portsCnt = TASK_PORT_REGISTER_MAX; return KERN_SUCCESS; } -- cgit v1.2.3