diff --git a/evthread-internal.h b/evthread-internal.h index e946947e..a0383a08 100644 --- a/evthread-internal.h +++ b/evthread-internal.h @@ -175,7 +175,7 @@ EVLOCK_TRY_LOCK(void *lock) #define EVBASE_RELEASE_LOCK(base, 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 #ifdef __cplusplus diff --git a/test/test-ratelim.c b/test/test-ratelim.c index 59e3ecb1..92f73e92 100644 --- a/test/test-ratelim.c +++ b/test/test-ratelim.c @@ -340,7 +340,9 @@ main(int argc, char **argv) #endif } +#ifndef _EVENT_DISABLE_THREAD_SUPPORT evthread_enable_lock_debuging(); +#endif test_ratelimiting();