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 a47406aa280b7e67d848d4d37b8682faaaabe7ed..d40002e6ad430cdec9b7efd3200db35b4e7008d1 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