Skip to content
Snippets Groups Projects
Commit aa797445 authored by Olle Johansson's avatar Olle Johansson
Browse files

Declare missing randomlock

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 0d7fda32
No related branches found
No related tags found
No related merge requests found
...@@ -884,6 +884,9 @@ int getloadavg(double *list, int nelem) ...@@ -884,6 +884,9 @@ int getloadavg(double *list, int nelem)
/* glibc puts a lock inside random(3), so that the results are thread-safe. /* glibc puts a lock inside random(3), so that the results are thread-safe.
* BSD libc (and others) do not. */ * BSD libc (and others) do not. */
#ifndef linux #ifndef linux
AST_MUTEX_DEFINE_STATIC(randomlock);
long int ast_random(void) long int ast_random(void)
{ {
long int res; long int res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment