diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-12-11 23:06:51 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-12-11 23:06:51 +0000 |
commit | bd49bba49e3a039c537d35cc3a8e55d429c11af5 (patch) | |
tree | de1ea4d7b99eed73e3f9639ece992422d4df5060 /src/common/compat.h | |
parent | 93d122332df64fd0426a297adfad55add9a39c5a (diff) | |
download | tor-bd49bba49e3a039c537d35cc3a8e55d429c11af5.tar.gz tor-bd49bba49e3a039c537d35cc3a8e55d429c11af5.zip |
r17091@catbus: nickm | 2007-12-11 18:05:55 -0500
Fix compilation when --disable-threads is passed in.
svn:r12768
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index e775884430..68c65569e4 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -469,12 +469,14 @@ void tor_mutex_acquire(tor_mutex_t *m); void tor_mutex_release(tor_mutex_t *m); void tor_mutex_free(tor_mutex_t *m); unsigned long tor_get_thread_id(void); +void tor_threads_init(void); #else #define tor_mutex_new() ((tor_mutex_t*)tor_malloc(sizeof(int))) #define tor_mutex_acquire(m) STMT_NIL #define tor_mutex_release(m) STMT_NIL #define tor_mutex_free(m) STMT_BEGIN tor_free(m); STMT_END #define tor_get_thread_id() (1UL) +#define tor_threads_init() STMT_NIL #endif #ifdef TOR_IS_MULTITHREADED @@ -484,7 +486,6 @@ void tor_cond_free(tor_cond_t *cond); int tor_cond_wait(tor_cond_t *cond, tor_mutex_t *mutex); void tor_cond_signal_one(tor_cond_t *cond); void tor_cond_signal_all(tor_cond_t *cond); -void tor_threads_init(void); #endif /* Platform-specific helpers. */ |