#include <mach/boolean.h>
#include <mach/vm_types.h>
+#include <sys/appleapiopts.h>
+
+/*
+ * Old scheduling control interface
+ */
+typedef int policy_t;
+typedef integer_t *policy_info_t;
+typedef integer_t *policy_base_t;
+typedef integer_t *policy_limit_t;
+
+#ifdef __APPLE_API_UNSTABLE
+
/*
* Policy definitions. Policies should be powers of 2,
* but cannot be or'd together other than to test for a
(policy) != POLICY_FIFO)
-/*
- * New scheduling control interface
- */
-typedef int policy_t;
-typedef integer_t *policy_info_t;
-typedef integer_t *policy_base_t;
-typedef integer_t *policy_limit_t;
-
-
/*
* Types for TIMESHARE policy
*/
typedef struct policy_limits policy_limit_data_t;
typedef struct policy_infos policy_info_data_t;
+#endif /* __APPLE_API_UNSTABLE */
+
#endif /* _MACH_POLICY_H_ */