aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-01-03 13:18:33 -0500
committerNick Mathewson <nickm@torproject.org>2011-01-03 13:18:33 -0500
commit27cefef3a21e69d801c30d1450399b7d034c0f20 (patch)
tree116739a8a3be1b994a9aa9fefc2afca8f715efa3
parentbb5f99d4dfe119f82556ba4d9385d667a8414935 (diff)
parent5c09431cc7c3843a26b2fcc8e52f56f3bba8abb6 (diff)
downloadtor-27cefef3a21e69d801c30d1450399b7d034c0f20.tar.gz
tor-27cefef3a21e69d801c30d1450399b7d034c0f20.zip
Merge remote branch 'origin/maint-0.2.1' into 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 01c94d5f4e..ee20e716c0 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>