mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 22:37:42 -04:00
Fix a warning in evutil_rand when building with threads disabled
This commit is contained in:
parent
4a5c82d617
commit
00a7a0e478
@ -89,7 +89,9 @@ arc4random_buf(void *buf, size_t n)
|
|||||||
#define ARC4RANDOM_EXPORT static
|
#define ARC4RANDOM_EXPORT static
|
||||||
#define _ARC4_LOCK() EVLOCK_LOCK(arc4rand_lock, 0)
|
#define _ARC4_LOCK() EVLOCK_LOCK(arc4rand_lock, 0)
|
||||||
#define _ARC4_UNLOCK() EVLOCK_UNLOCK(arc4rand_lock, 0)
|
#define _ARC4_UNLOCK() EVLOCK_UNLOCK(arc4rand_lock, 0)
|
||||||
|
#ifndef _EVENT_DISABLE_THREAD_SUPPORT
|
||||||
static void *arc4rand_lock;
|
static void *arc4rand_lock;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ARC4RANDOM_UINT32 ev_uint32_t
|
#define ARC4RANDOM_UINT32 ev_uint32_t
|
||||||
#define ARC4RANDOM_NOSTIR
|
#define ARC4RANDOM_NOSTIR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user