src/solaris/transport/socket/socket_md.c

Print this page

        

*** 33,44 **** #include <errno.h> #include <string.h> #include <sys/time.h> #ifdef __solaris__ #include <thread.h> ! #endif ! #if defined(__linux__) || defined(_ALLBSD_SOURCE) #include <pthread.h> #include <sys/poll.h> #endif #include "socket_md.h" --- 33,43 ---- #include <errno.h> #include <string.h> #include <sys/time.h> #ifdef __solaris__ #include <thread.h> ! #else #include <pthread.h> #include <sys/poll.h> #endif #include "socket_md.h"
*** 304,316 **** void* r = NULL; thr_getspecific((thread_key_t)index, &r); return r; } ! #endif ! ! #if defined(__linux__) || defined(_ALLBSD_SOURCE) int dbgsysTlsAlloc() { pthread_key_t key; if (pthread_key_create(&key, NULL)) { perror("pthread_key_create"); --- 303,313 ---- void* r = NULL; thr_getspecific((thread_key_t)index, &r); return r; } ! #else int dbgsysTlsAlloc() { pthread_key_t key; if (pthread_key_create(&key, NULL)) { perror("pthread_key_create");