[svn-commits] trunk - r7936 /trunk/utils.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Jan 10 02:33:54 CST 2006


Author: oej
Date: Tue Jan 10 02:33:52 2006
New Revision: 7936

URL: http://svn.digium.com/view/asterisk?rev=7936&view=rev
Log:
Declare missing randomlock

Modified:
    trunk/utils.c

Modified: trunk/utils.c
URL: http://svn.digium.com/view/asterisk/trunk/utils.c?rev=7936&r1=7935&r2=7936&view=diff
==============================================================================
--- trunk/utils.c (original)
+++ trunk/utils.c Tue Jan 10 02:33:52 2006
@@ -884,6 +884,9 @@
 /* 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;



More information about the svn-commits mailing list