Fix a warning in evutil_rand when building with threads disabled

This commit is contained in:
Nick Mathewson 2011-07-17 21:48:38 -04:00
parent 4a5c82d617
commit 00a7a0e478

View File

@ -89,7 +89,9 @@ arc4random_buf(void *buf, size_t n)
#define ARC4RANDOM_EXPORT static
#define _ARC4_LOCK() EVLOCK_LOCK(arc4rand_lock, 0)
#define _ARC4_UNLOCK() EVLOCK_UNLOCK(arc4rand_lock, 0)
#ifndef _EVENT_DISABLE_THREAD_SUPPORT
static void *arc4rand_lock;
#endif
#define ARC4RANDOM_UINT32 ev_uint32_t
#define ARC4RANDOM_NOSTIR