[or-cvs] Implement --disable-threads

Nick Mathewson nickm at seul.org
Tue May 10 20:02:55 UTC 2005


Update of /home/or/cvsroot/tor/src/common
In directory moria.mit.edu:/tmp/cvs-serv29581/src/common

Modified Files:
	compat.h 
Log Message:
Implement --disable-threads

Index: compat.h
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- compat.h	7 May 2005 05:55:05 -0000	1.28
+++ compat.h	10 May 2005 20:02:52 -0000	1.29
@@ -211,10 +211,10 @@
 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



More information about the tor-commits mailing list