Solaris pthread once (#52)
* main: use same PTHREAD_ONCE_INIT for all platforms - Remove special case for SOLARIS - Tested on Solaris 11.3 with gcc * README: specify version of Solaris
This commit is contained in:
parent
068b9ab8b8
commit
0b73be50cd
2 changed files with 1 additions and 5 deletions
|
@ -206,7 +206,7 @@ legend:
|
|||
* FreeBSD
|
||||
* OpenBSD
|
||||
* NetBSD
|
||||
* Solaris
|
||||
* Solaris 11
|
||||
* Windows
|
||||
* Apple Mac OS X and iOS
|
||||
* Android
|
||||
|
|
|
@ -155,11 +155,7 @@ static struct re global_re = {
|
|||
|
||||
static void poll_close(struct re *re);
|
||||
|
||||
#ifdef SOLARIS
|
||||
static pthread_once_t pt_once = {PTHREAD_ONCE_INIT};
|
||||
#else
|
||||
static pthread_once_t pt_once = PTHREAD_ONCE_INIT;
|
||||
#endif
|
||||
static pthread_key_t pt_key;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue