#include <limits.h>
#include <pthread.h>
#include <sys/mman.h>
-#include <time.h>
+#include <common/compat/time.h>
#define BUF_SIZE 256
#define NB_FD 1
*/
void pselect_fd_too_big(void)
{
- fd_set rfds;
+ long rfds[2048 / (sizeof(long) * CHAR_BIT)] = { 0 };
int ret;
int fd2;
char buf[BUF_SIZE];
perror("dup2");
return;
}
- FD_ZERO(&rfds);
- FD_SET(fd2, &rfds);
+ FD_SET(fd2, (fd_set *) &rfds);
ret = syscall(SYS_pselect6, fd2 + 1, &rfds, NULL, NULL, NULL, NULL);
if (ret == -1) {