Loading...
--- Libc/Libc-1044.1.2/include/time.h
+++ Libc/Libc-583/include/time.h
@@ -64,11 +64,28 @@
#define _TIME_H_
#include <_types.h>
-#include <sys/_types/_clock_t.h>
-#include <sys/_types/_null.h>
-#include <sys/_types/_size_t.h>
-#include <sys/_types/_time_t.h>
-#include <sys/_types/_timespec.h>
+
+#define __need_struct_timespec
+#include <_structs.h>
+
+#ifndef NULL
+#define NULL __DARWIN_NULL
+#endif /* ! NULL */
+
+#ifndef _CLOCK_T
+#define _CLOCK_T
+typedef __darwin_clock_t clock_t;
+#endif
+
+#ifndef _SIZE_T
+#define _SIZE_T
+typedef __darwin_size_t size_t;
+#endif
+
+#ifndef _TIME_T
+#define _TIME_T
+typedef __darwin_time_t time_t;
+#endif
struct tm {
int tm_sec; /* seconds after the minute [0-60] */