mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 21:10:06 -04: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 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
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user