summaryrefslogtreecommitdiff
path: root/i386/include/mach/i386/mach_i386_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'i386/include/mach/i386/mach_i386_types.h')
-rw-r--r--i386/include/mach/i386/mach_i386_types.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/i386/include/mach/i386/mach_i386_types.h b/i386/include/mach/i386/mach_i386_types.h
index f003636d..f5177fb5 100644
--- a/i386/include/mach/i386/mach_i386_types.h
+++ b/i386/include/mach/i386/mach_i386_types.h
@@ -30,6 +30,7 @@
#ifndef _MACH_MACH_I386_TYPES_H_
#define _MACH_MACH_I386_TYPES_H_
+#ifndef __ASSEMBLER__
/*
* i386 segment descriptor.
*/
@@ -42,15 +43,15 @@ typedef struct descriptor descriptor_t;
typedef struct descriptor *descriptor_list_t;
typedef const struct descriptor *const_descriptor_list_t;
+#endif /* !__ASSEMBLER__ */
+
/*
* i386 I/O port
*/
-#ifdef MACH_KERNEL
-#include <i386/io_perm.h>
-#else /* MACH_KERNEL */
+#ifndef MACH_KERNEL
typedef unsigned short io_port_t;
typedef mach_port_t io_perm_t;
-#endif /* MACH_KERNEL */
+#endif /* !MACH_KERNEL */
#endif /* _MACH_MACH_I386_TYPES_H_ */