#ifdef HAVE_PSELECT
int n = pselect(fds, &readable, &writable, NULL, &ts, NULL);
#ifdef HAVE_PSELECT
int n = pselect(fds, &readable, &writable, NULL, &ts, NULL);
int n = select(fds, &readable, &writable, NULL, (struct timeval *)&tv);
#endif
int n = select(fds, &readable, &writable, NULL, (struct timeval *)&tv);
#endif