#include <mach/mach_param.h> not included by <mach/mach.h> — include it explicitly
mach/mach_param.h
6 macros
#define TASK_PORT_REGISTER_MAX 3
Number of watchport for task
#define TASK_MAX_WATCHPORT_COUNT 128
Number of exception ports for task
#define TASK_MAX_EXCEPTION_PORT_COUNT EXC_TYPES_COUNT
Number of different task port flavor
#define TASK_SELF_PORT_COUNT 4
Number of different thread port flavor
#define THREAD_SELF_PORT_COUNT 3
Max length of conclave name
#define MAXCONCLAVENAME 128