diff options
Diffstat (limited to 'include/mach')
-rw-r--r-- | include/mach/memory_object.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/mach/memory_object.h b/include/mach/memory_object.h index f281f04d..7e0c3741 100644 --- a/include/mach/memory_object.h +++ b/include/mach/memory_object.h @@ -40,14 +40,18 @@ #include <mach/port.h> +#ifdef MACH_KERNEL +#include <ipc/ipc_types.h> +typedef ipc_port_t memory_object_t; +#else typedef mach_port_t memory_object_t; +#endif /* Represents a memory object ... */ /* Used by user programs to specify */ /* the object to map; used by the */ /* kernel to retrieve or store data */ -typedef mach_port_t * memory_object_array_t; - /* should be memory_object_t * */ +typedef memory_object_t *memory_object_array_t; typedef mach_port_t memory_object_control_t; /* Provided to a memory manager; ... */ |