22 #include "../../SDL_internal.h"
31 #include <sys/types.h>
50 info.events = POLLOUT;
52 info.events = POLLIN | POLLPRI;
54 result = poll(&info, 1, timeoutMS);
56 fd_set rfdset, *rfdp =
NULL;
57 fd_set wfdset, *wfdp =
NULL;
58 struct timeval tv, *tvp =
NULL;
74 tv.tv_sec = timeoutMS / 1000;
75 tv.tv_usec = (timeoutMS % 1000) * 1000;
82 }
while (
result < 0 && errno == EINTR );