diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-10 08:33:52 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-10 08:33:52 +0000 |
commit | a648f2869e88700e750ed01665d95ded316c32f3 (patch) | |
tree | 95ed5af4a5ea1b9b7cb219d860510a88c6367226 /utils.c | |
parent | 9b9ed4da7463c76246df9cdb8af83509dc9edc31 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |