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
! #ifdef __linux__
#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"
*** 279,291 ****
void* r = NULL;
thr_getspecific((thread_key_t)index, &r);
return r;
}
! #endif
- #ifdef __linux__
int
dbgsysTlsAlloc() {
pthread_key_t key;
if (pthread_key_create(&key, NULL)) {
perror("pthread_key_create");
--- 278,289 ----
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");