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:
Alfred E. Heggestad 2017-04-02 16:33:46 +02:00 committed by Richard Aas
parent 068b9ab8b8
commit 0b73be50cd
2 changed files with 1 additions and 5 deletions

View file

@ -206,7 +206,7 @@ legend:
* FreeBSD
* OpenBSD
* NetBSD
* Solaris
* Solaris 11
* Windows
* Apple Mac OS X and iOS
* Android

View file

@ -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;