src/solaris/transport/socket/socket_md.c

Print this page

        

@@ -33,12 +33,11 @@
 #include <errno.h>
 #include <string.h>
 #include <sys/time.h>
 #ifdef __solaris__
 #include <thread.h>
-#endif
-#if defined(__linux__) || defined(_ALLBSD_SOURCE)
+#else
 #include <pthread.h>
 #include <sys/poll.h>
 #endif
 
 #include "socket_md.h"

@@ -304,13 +303,11 @@
     void* r = NULL;
     thr_getspecific((thread_key_t)index, &r);
     return r;
 }
 
-#endif
-
-#if defined(__linux__) || defined(_ALLBSD_SOURCE)
+#else
 int
 dbgsysTlsAlloc() {
     pthread_key_t key;
     if (pthread_key_create(&key, NULL)) {
         perror("pthread_key_create");