[PATCH] pthread.h: include <time.h>

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Sun Feb 12 22:04:00 GMT 2012


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread-include-time.patch
Type: text/x-patch
Size: 558 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20120212/95d843bd/attachment.bin>


More information about the Cygwin-patches mailing list