mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Fix compilation of rate-limit code when threading support is disabled
This commit is contained in:
parent
26e1b6f298
commit
97a8c79006
@ -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
|
||||
|
@ -340,7 +340,9 @@ main(int argc, char **argv)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef _EVENT_DISABLE_THREAD_SUPPORT
|
||||
evthread_enable_lock_debuging();
|
||||
#endif
|
||||
|
||||
test_ratelimiting();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user