mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 22:08:33 +00:00
Tue May 19 12:00:30 CDT 2009 Pekka Pessi <first.last@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@jerris.com>. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13387 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
c923f7a1f9
commit
c60535e7a8
2 files changed
+6
-5
No files matched your search
@@ -1 +1 @@
|
|||||||
Tue May 19 09:46:18 CDT 2009
|
Tue May 19 12:23:01 CDT 2009
|
||||||
@@ -84,11 +84,12 @@ union state {
|
|||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#if defined(__sun)
|
#if __sun
|
||||||
static pthread_once_t once = { PTHREAD_ONCE_INIT };
|
#undef PTHREAD_ONCE_INIT
|
||||||
#else
|
#define PTHREAD_ONCE_INIT {{ 0, 0, 0, PTHREAD_ONCE_NOTDONE }}
|
||||||
static pthread_once_t once = PTHREAD_ONCE_INIT;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static pthread_once_t once = PTHREAD_ONCE_INIT;
|
||||||
static int done_once = 1;
|
static int done_once = 1;
|
||||||
static pthread_key_t state_key;
|
static pthread_key_t state_key;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user