Declare missing randomlock

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Olle Johansson
2006-01-10 08:33:52 +00:00
parent 0d7fda32fd
commit aa7974450b

View File

@@ -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;