summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-01-10 08:33:52 +0000
committerOlle Johansson <oej@edvina.net>2006-01-10 08:33:52 +0000
commitaa7974450badbdbbce852c94f09313b33f5a8afe (patch)
tree95ed5af4a5ea1b9b7cb219d860510a88c6367226 /utils.c
parent0d7fda32fdffd829eef825d7a3f183af8552ba78 (diff)
Declare missing randomlock
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index cf3bd09ee..ef0246252 100644
--- 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;