From aa7974450badbdbbce852c94f09313b33f5a8afe Mon Sep 17 00:00:00 2001 From: Olle Johansson Date: Tue, 10 Jan 2006 08:33:52 +0000 Subject: [PATCH] Declare missing randomlock git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7936 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils.c b/utils.c index cf3bd09ee5..ef0246252a 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;