summaryrefslogtreecommitdiff
path: root/mit-pthreads/machdep/irix-5.2/__time.h
diff options
context:
space:
mode:
Diffstat (limited to 'mit-pthreads/machdep/irix-5.2/__time.h')
-rwxr-xr-xmit-pthreads/machdep/irix-5.2/__time.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/mit-pthreads/machdep/irix-5.2/__time.h b/mit-pthreads/machdep/irix-5.2/__time.h
new file mode 100755
index 00000000000..51fb993b38d
--- /dev/null
+++ b/mit-pthreads/machdep/irix-5.2/__time.h
@@ -0,0 +1,21 @@
+#if !defined(_SIZE_T) && !defined(_SIZE_T_)
+#define _SIZE_T
+typedef pthread_size_t size_t;
+#endif
+
+#ifndef _CLOCK_T
+#define _CLOCK_T
+typedef pthread_clock_t clock_t;
+#endif
+
+#ifndef _TIME_T
+#define _TIME_T
+typedef pthread_time_t time_t;
+#endif /* !_TIME_T */
+
+#define CLOCKS_PER_SEC 1000000
+
+#ifndef CLK_TCK
+#define CLK_TCK sysconf(3) /* clock ticks per second */
+ /* 3 is _SC_CLK_TCK */
+#endif