summaryrefslogtreecommitdiff
path: root/include/pthread/pthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pthread/pthread.h')
-rw-r--r--include/pthread/pthread.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/pthread/pthread.h b/include/pthread/pthread.h
index 23a5ff4..891ed32 100644
--- a/include/pthread/pthread.h
+++ b/include/pthread/pthread.h
@@ -29,6 +29,16 @@
#define __need_clockid_t
#include <time.h>
+/* If we are in a mode where clockid_t is not automatically defined
+ and another header has already included <time.h> then defining
+ __need_clockid_t was not enough. */
+#ifndef __clockid_t_defined
+# define __clockid_t_defined 1
+# include <bits/types.h>
+/* Clock ID used in clock and timer functions. */
+typedef __clockid_t clockid_t;
+#endif
+
__BEGIN_DECLS
#include <bits/pthread.h>