summaryrefslogtreecommitdiff
path: root/ipc/ipc_machdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/ipc_machdep.h')
-rwxr-xr-xipc/ipc_machdep.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/ipc/ipc_machdep.h b/ipc/ipc_machdep.h
index c205ba45..2871fc31 100755
--- a/ipc/ipc_machdep.h
+++ b/ipc/ipc_machdep.h
@@ -27,18 +27,13 @@
#ifndef _IPC_IPC_MACHDEP_H_
#define _IPC_IPC_MACHDEP_H_
+#include <mach/message.h>
+
/*
* At times, we need to know the size of a port in bits
*/
-/* 64 bit machines */
-#if defined(__alpha)
-#define PORT_T_SIZE_IN_BITS 64
-#endif
-
-/* default, 32 bit machines */
-#if !defined(PORT_T_SIZE_IN_BITS)
-#define PORT_T_SIZE_IN_BITS 32
-#endif
+#define PORT_T_SIZE_IN_BITS (sizeof(mach_port_t)*8)
+#define PORT_NAME_T_SIZE_IN_BITS (sizeof(mach_port_name_t)*8)
#endif /* _IPC_IPC_MACHDEP_H_ */