blob: 31c92793fc75c2f729dcebce9e2c258effd77a5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
2005-05-31 Neal H. Walfield <neal@gnu.org>
* include/pthread/pthread.h: If clockid_t is still not defined
after including <time.h>, define it manually.
2005-05-17 Neal H. Walfield <neal@gnu.org>
* include/pthread/pthread.h: Define __need_clockid_t before
including <time.h>.
Index: include/pthread/pthread.h
===================================================================
RCS file: /cvsroot/hurd/hurd/libpthread/include/pthread/pthread.h,v
diff -u -r1.5 -r1.6
--- libpthread/include/pthread/pthread.h 12 May 2005 20:55:38 -0000 1.5
+++ libpthread/include/pthread/pthread.h 17 May 2005 09:40:50 -0000 1.6
@@ -26,6 +26,7 @@
#include <features.h>
#include <sched.h>
+#define __need_clockid_t
#include <time.h>
__BEGIN_DECLS
Index: libpthread/include/pthread/pthread.h
===================================================================
RCS file: /cvsroot/hurd/hurd/libpthread/include/pthread/pthread.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- libpthread/include/pthread/pthread.h 17 May 2005 09:40:50 -0000 1.6
+++ libpthread/include/pthread/pthread.h 31 May 2005 17:34:36 -0000 1.7
@@ -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>
|