[Freeswitch-svn] [commit] r13387 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/su
FreeSWITCH SVN
mikej at freeswitch.org
Tue May 19 10:23:16 PDT 2009
Author: mikej
Date: Tue May 19 12:23:16 2009
New Revision: 13387
Log:
Tue May 19 12:00:30 CDT 2009 Pekka Pessi <first.last at nokia.com>
* su_uniqueid.c: Solaris misdefines PTHREAD_ONCE_INIT
Ignore-this: 9fe2247164d572901ed4a30b009353db
Solaris defines pthread_once_t as a struct containing an array. The
initializer PTHREAD_ONCE_INIT needs two levels of brackets it but only has
one. Original patch from Mike Jerris <mike at jerris.com>.
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 May 19 12:23:16 2009
@@ -1 +1 @@
-Tue May 19 09:46:18 CDT 2009
+Tue May 19 12:23:01 CDT 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 May 19 12:23:16 2009
@@ -84,11 +84,12 @@
#include <pthread.h>
-#if defined(__sun)
-static pthread_once_t once = { PTHREAD_ONCE_INIT };
-#else
-static pthread_once_t once = PTHREAD_ONCE_INIT;
+#if __sun
+#undef PTHREAD_ONCE_INIT
+#define PTHREAD_ONCE_INIT {{ 0, 0, 0, PTHREAD_ONCE_NOTDONE }}
#endif
+
+static pthread_once_t once = PTHREAD_ONCE_INIT;
static int done_once = 1;
static pthread_key_t state_key;
More information about the Freeswitch-svn
mailing list