Declare missing randomlock
authorOlle Johansson <oej@edvina.net>
Tue, 10 Jan 2006 08:33:52 +0000 (08:33 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 10 Jan 2006 08:33:52 +0000 (08:33 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7936 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils.c

diff --git a/utils.c b/utils.c
index cf3bd09..ef02462 100644 (file)
--- a/utils.c
+++ b/utils.c
@@ -884,6 +884,9 @@ int getloadavg(double *list, int nelem)
 /* glibc puts a lock inside random(3), so that the results are thread-safe.
  * BSD libc (and others) do not. */
 #ifndef linux
+
+AST_MUTEX_DEFINE_STATIC(randomlock);
+
 long int ast_random(void)
 {
        long int res;