pthread.h needs clockid_t
authorRich Felker <dalias@aerifal.cx>
Sun, 13 Mar 2011 02:54:19 +0000 (21:54 -0500)
committerRich Felker <dalias@aerifal.cx>
Sun, 13 Mar 2011 02:54:19 +0000 (21:54 -0500)
actually it gets this from time.h if _POSIX_C_SOURCE or any other
feature test macros are defined, but it breaks if they're not.

include/pthread.h

index a47406a..d40002e 100644 (file)
@@ -5,6 +5,7 @@ extern "C" {
 #endif
 
 #define __NEED_time_t
+#define __NEED_clockid_t
 #define __NEED_struct_timespec
 #define __NEED_sigset_t
 #define __NEED_pthread_t