[Freeswitch-svn] [commit] r12400 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/su
FreeSWITCH SVN
mikej at freeswitch.org
Tue Mar 3 14:02:55 PST 2009
Author: mikej
Date: Tue Mar 3 16:02:55 2009
New Revision: 12400
Log:
Tue Mar 3 12:23:35 CST 2009 Della Betta Filippo <filippo DOT dellabetta AT telecomitalia DOT it>
* su_uniqueid.c: srand() must be called per-thread on windows
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_uniqueid.c
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Tue Mar 3 16:02:55 2009
@@ -1 +1 @@
-Tue Mar 3 16:01:07 CST 2009
+Tue Mar 3 16:01:38 CST 2009
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_uniqueid.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_uniqueid.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_uniqueid.c Tue Mar 3 16:02:55 2009
@@ -73,8 +73,13 @@
#include "sofia-sip/su_time.h"
#include "sofia-sip/su_uniqueid.h"
+#ifdef SU_HAVE_WINSOCK
+#define PERTHREAD __declspec(thread)
+#else
+#define PERTHREAD
+#endif
/* For random number generator */
-static int initialized = 0;
+static PERTHREAD int initialized = 0;
static void init(void);
static void init_node(void);
More information about the Freeswitch-svn
mailing list