Port to x86-64 versions of Windows
[sbcl.git] / src / runtime / pthreads_win32.h
index 2d4b066..b91c0f9 100644 (file)
@@ -180,7 +180,10 @@ int pthread_cond_signal(pthread_cond_t *cond);
 int pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, const struct timespec * abstime);
 int pthread_cond_wait(pthread_cond_t * cond, pthread_mutex_t * mutex);
 
-#define ETIMEDOUT 123 //Something
+/* some MinGWs seem to include it, others not: */
+#ifndef ETIMEDOUT
+# define ETIMEDOUT 123 //Something
+#endif
 
 int sched_yield();