aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-10 08:33:52 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-10 08:33:52 +0000
commita648f2869e88700e750ed01665d95ded316c32f3 (patch)
tree95ed5af4a5ea1b9b7cb219d860510a88c6367226 /utils.c
parent9b9ed4da7463c76246df9cdb8af83509dc9edc31 (diff)
Declare missing randomlock
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7936 f38db490-d61c-443f-a65b-d21fe96a405b
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;