fix poll() emulation

This commit is contained in:
gbeauche 2005-05-14 17:33:57 +00:00
parent 1b53603138
commit 77446db25d

View File

@ -574,7 +574,7 @@ static inline int poll_fd(int fd)
fd_set rfds;
FD_ZERO(&rfds);
FD_SET(fd, &rfds);
return select(1, &rfds, NULL, NULL, NULL);
return select(fd + 1, &rfds, NULL, NULL, NULL);
#endif
}