#include <sys/cdefs.h>
#include <sys/_types.h>
+#include <machine/types.h> /* __int32_t */
/*
* [XSI] All of the symbols from <sys/ipc.h> SHALL be defined
* NOTE: The definition of the key_t type is implicit from the
* inclusion of <sys/ipc.h>
*/
-#ifndef _PID_T
-typedef __darwin_pid_t pid_t;
-#define _PID_T
-#endif
-
-#ifndef _TIME_T
-#define _TIME_T
-typedef __darwin_time_t time_t;
-#endif
-
-#ifndef _SIZE_T
-#define _SIZE_T
-typedef __darwin_size_t size_t;
-#endif
+#include <sys/_types/_pid_t.h>
+#include <sys/_types/_time_t.h>
+#include <sys/_types/_size_t.h>
/*
* Technically, we should force all code references to the new structure