aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-01-03 13:19:10 -0500
committerNick Mathewson <nickm@torproject.org>2011-01-03 13:19:10 -0500
commit0489f7e004af3b7de39b6ca530d4752688d4053f (patch)
treed3e6543f5ba56e1051900617842563d4cab96d9d
parent8932753169a25c6410565490267f2158eb555160 (diff)
parent27cefef3a21e69d801c30d1450399b7d034c0f20 (diff)
downloadtor-0489f7e004af3b7de39b6ca530d4752688d4053f.tar.gz
tor-0489f7e004af3b7de39b6ca530d4752688d4053f.zip
Merge remote branch 'origin/maint-0.2.2'
-rw-r--r--changes/bug23134
-rw-r--r--src/common/compat.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/changes/bug2313 b/changes/bug2313
new file mode 100644
index 0000000000..0ffbe4ab07
--- /dev/null
+++ b/changes/bug2313
@@ -0,0 +1,4 @@
+ o Minor bugfixes
+ - Fix compilation on mingw when a pthreads compatibility library
+ has been installed. (We don't want to use it, so we shouldn't
+ be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
diff --git a/src/common/compat.h b/src/common/compat.h
index 19df1beed5..a7970109d7 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -31,7 +31,7 @@
#ifdef HAVE_STRING_H
#include <string.h>
#endif
-#ifdef HAVE_PTHREAD_H
+#if defined(HAVE_PTHREAD_H) && !defined(MS_WINDOWS)
#include <pthread.h>
#endif
#include <stdarg.h>