diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-01-27 22:34:48 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-01-27 22:34:48 +0000 |
commit | 083b67cda564d3ad8896f0ad6fe3332911088f33 (patch) | |
tree | 566a9240fdf40363561663efb18081e218504057 /src/common/compat.h | |
parent | e03f571ee31a4d0e028db48d003a4bae105717f8 (diff) | |
download | tor-083b67cda564d3ad8896f0ad6fe3332911088f33.tar.gz tor-083b67cda564d3ad8896f0ad6fe3332911088f33.zip |
Add rudimentary pthread support that needs more testing.
svn:r3439
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index e10a6b620d..f75e39b122 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -196,7 +196,11 @@ void tor_mutex_acquire(tor_mutex_t *m); void tor_mutex_release(tor_mutex_t *m); void tor_mutex_free(tor_mutex_t *m); -#ifdef MS_WINDOWS +#if defined(MS_WINDOWS) +#define USE_WIN32_THREADS +#define TOR_IS_MULTITHREADED 1 +#elif defined(HAVE_PTHREAD_H) && defined(HAVE_PTHREAD_CREATE) +#define USE_PTHREADS #define TOR_IS_MULTITHREADED 1 #else #undef TOR_IS_MULTITHREADED |