POSIX states: > Inclusion of the <pthread.h> header shall make symbols defined in the > headers <sched.h> and <time.h> visible.
The reason being that some pthread functions take a clockid_t argument, and the CLOCK_* symbolic names are therein defined. Patch attached. Yaakov
2012-Feb-?? Yaakov Selkowitz <yselkowitz@...> * include/pthread.h: Include time.h as required by POSIX. Index: include/pthread.h =================================================================== RCS file: /cvs/src/src/winsup/cygwin/include/pthread.h,v retrieving revision 1.35 diff -u -p -r1.35 pthread.h --- include/pthread.h 6 Jan 2012 07:12:18 -0000 1.35 +++ include/pthread.h 12 Feb 2012 21:56:02 -0000 @@ -14,6 +14,7 @@ #include <sys/types.h> #include <signal.h> #include <sched.h> +#include <time.h> #ifndef _PTHREAD_H #define _PTHREAD_H
