summaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-05-10 20:02:52 +0000
committerNick Mathewson <nickm@torproject.org>2005-05-10 20:02:52 +0000
commitea5591ee4dfdc569ea2f79ca46e03f4306f7ded7 (patch)
treea9769aa97a688a2ccbc9dd000829ff803da42a93 /src/common/compat.h
parent13126eeb0fa16f98bffae378f3f570112f99da8d (diff)
downloadtor-ea5591ee4dfdc569ea2f79ca46e03f4306f7ded7.tar.gz
tor-ea5591ee4dfdc569ea2f79ca46e03f4306f7ded7.zip
Implement --disable-threads
svn:r4187
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 91475d0187..5dd5104e2a 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -211,10 +211,10 @@ char *get_user_homedir(const char *username);
int spawn_func(int (*func)(void *), void *data);
void spawn_exit(void);
-#if defined(MS_WINDOWS)
+#if defined(ENABLE_THREADS) && defined(MS_WINDOWS)
#define USE_WIN32_THREADS
#define TOR_IS_MULTITHREADED 1
-#elif defined(HAVE_PTHREAD_H) && defined(HAVE_PTHREAD_CREATE)
+#elif defined(ENABLE_THREADS) && defined(HAVE_PTHREAD_H) && defined(HAVE_PTHREAD_CREATE)
#define USE_PTHREADS
#define TOR_IS_MULTITHREADED 1
#else