summaryrefslogtreecommitdiff
path: root/i386/include/mach
diff options
context:
space:
mode:
Diffstat (limited to 'i386/include/mach')
-rw-r--r--i386/include/mach/i386/vm_types.h6
-rw-r--r--i386/include/mach/sa/stdarg.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/i386/include/mach/i386/vm_types.h b/i386/include/mach/i386/vm_types.h
index d54008e..1439940 100644
--- a/i386/include/mach/i386/vm_types.h
+++ b/i386/include/mach/i386/vm_types.h
@@ -73,7 +73,7 @@ typedef unsigned int uint32;
* A vm_offset_t is a type-neutral pointer,
* e.g. an offset into a virtual memory space.
*/
-typedef natural_t vm_offset_t;
+typedef unsigned long vm_offset_t;
typedef vm_offset_t * vm_offset_array_t;
/*
@@ -88,11 +88,11 @@ typedef natural_t vm_size_t;
*/
typedef signed char signed8_t;
typedef signed short signed16_t;
-typedef signed long signed32_t;
+typedef signed int signed32_t;
typedef signed long long signed64_t;
typedef unsigned char unsigned8_t;
typedef unsigned short unsigned16_t;
-typedef unsigned long unsigned32_t;
+typedef unsigned int unsigned32_t;
typedef unsigned long long unsigned64_t;
typedef float float32_t;
typedef double float64_t;
diff --git a/i386/include/mach/sa/stdarg.h b/i386/include/mach/sa/stdarg.h
index ba0f78a..550fec4 100644
--- a/i386/include/mach/sa/stdarg.h
+++ b/i386/include/mach/sa/stdarg.h
@@ -39,7 +39,7 @@ typedef __builtin_va_list va_list;
#else
-#define __va_size(type) ((sizeof(type)+3) & ~0x3)
+#define __va_size(type) ((sizeof(type)+sizeof(unsigned long)-1) & ~(sizeof(unsigned long)-1))
#ifndef _VA_LIST_
#define _VA_LIST_