aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mach/mach_types.h13
-rw-r--r--include/mach/std_types.h4
2 files changed, 6 insertions, 11 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;
diff --git a/include/mach/std_types.h b/include/mach/std_types.h
index f78e236a..0d5db0ae 100644
--- a/include/mach/std_types.h
+++ b/include/mach/std_types.h
@@ -41,8 +41,4 @@
typedef vm_offset_t pointer_t;
typedef vm_offset_t vm_address_t;
-#ifdef MACH_KERNEL
-#include <ipc/ipc_port.h>
-#endif /* MACH_KERNEL */
-
#endif /* _MACH_STD_TYPES_H_ */