Commits

Steve Borho committed bbe3f47

threading: on linux gettimeofday() requires <sys/time.h>, UINT32_MAX is C only

Comments (0)

Files changed (1)

source/common/threading.h

 
 #ifdef __GNUC__                         /* GCCs builtin atomics */
 
+#include <sys/time.h>
 #include <unistd.h>
 #include <limits.h>
 
     void trigger()
     {
         pthread_mutex_lock(&m_mutex);
-        if (m_counter < UINT32_MAX)
+        if (m_counter < UINT_MAX)
             m_counter++;
         /* Signal a single blocking thread */
         pthread_cond_signal(&m_cond);