summaryrefslogtreecommitdiff
path: root/include/mach/mach_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mach/mach_types.h')
-rw-r--r--include/mach/mach_types.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/mach/mach_types.h b/include/mach/mach_types.h
index 57f8f22d..5ecd686a 100644
--- a/include/mach/mach_types.h
+++ b/include/mach/mach_types.h
@@ -57,13 +57,12 @@
#include <mach/vm_sync.h>
#ifdef MACH_KERNEL
-#include <kern/task.h> /* for task_array_t */
-#include <kern/thread.h> /* for thread_array_t */
-#include <kern/processor.h> /* for processor_array_t,
- processor_set_array_t,
- processor_set_name_array_t */
-#include <kern/syscall_emulation.h>
- /* for emulation_vector_t */
+
+typedef struct task *task_t;
+typedef struct thread *thread_t;
+typedef struct processor *processor_t;
+typedef struct processor_set *processor_set_t;
+
#else /* MACH_KERNEL */
typedef mach_port_t task_t;
typedef task_t *task_array_t;