--- gthr-posix.h Sun Apr 01 02:50:10 2012 +++ gthr-posix.h Thu Aug 23 14:31:02 2012 @@ -58,6 +58,15 @@ typedef pthread_cond_t __gthread_cond_t; typedef struct timespec __gthread_time_t; +#ifdef PTW32_VERSION + +static inline bool operator <(pthread_t a, pthread_t b) +{ + return a.p < b.p; +} + +#endif // PTW32_VERSION + /* POSIX like conditional variables are supported. Please look at comments in gthr.h for details. */ #define __GTHREAD_HAS_COND 1