mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-25 06:00:36 +00:00
Declare missing randomlock
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
3
utils.c
3
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.
|
/* 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user