[Freeswitch-svn] [commit] r13369 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su

FreeSWITCH SVN mikej at freeswitch.org
Fri May 15 14:21:07 PDT 2009


Author: mikej
Date: Fri May 15 16:21:06 2009
New Revision: 13369

Log:
silence solaris warning from missing braces (SFSIP-132)

Modified:
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_uniqueid.c

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	Fri May 15 16:21:06 2009
@@ -84,7 +84,11 @@
 
 #include <pthread.h>
 
+#if defined(__sun)
+static pthread_once_t once = { PTHREAD_ONCE_INIT };
+#else
 static pthread_once_t once = PTHREAD_ONCE_INIT;
+#endif
 static int done_once = 1;
 static pthread_key_t state_key;
 



More information about the Freeswitch-svn mailing list