Fix compilation of rate-limit code when threading support is disabled

This commit is contained in:
Nick Mathewson 2010-01-22 00:34:21 -05:00
parent 26e1b6f298
commit 97a8c79006
2 changed files with 3 additions and 1 deletions

View File

@ -175,7 +175,7 @@ EVLOCK_TRY_LOCK(void *lock)
#define EVBASE_RELEASE_LOCK(base, lock) _EVUTIL_NIL_STMT #define EVBASE_RELEASE_LOCK(base, lock) _EVUTIL_NIL_STMT
#define EVLOCK_ASSERT_LOCKED(lock) _EVUTIL_NIL_STMT #define EVLOCK_ASSERT_LOCKED(lock) _EVUTIL_NIL_STMT
#define EVTHREAD_TRY_LOCK(lock) 1 #define EVLOCK_TRY_LOCK(lock) 1
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -340,7 +340,9 @@ main(int argc, char **argv)
#endif #endif
} }
#ifndef _EVENT_DISABLE_THREAD_SUPPORT
evthread_enable_lock_debuging(); evthread_enable_lock_debuging();
#endif
test_ratelimiting(); test_ratelimiting();