Skip to content

Commit

Permalink
Fix a warning in evutil_rand when building with threads disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathewson committed Jul 18, 2011
1 parent 4a5c82d commit 00a7a0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions evutil_rand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00a7a0e

Please sign in to comment.