forked from aniani/vim
patch 7.4.1193
Problem: Can't build the channel feature on MS-Windows. Solution: Add #ifdef HAVE_POLL.
This commit is contained in:
@@ -726,12 +726,14 @@ channel_wait(int fd, int timeout)
|
||||
break;
|
||||
}
|
||||
#else
|
||||
# ifdef HAVE_POLL
|
||||
struct pollfd fds;
|
||||
|
||||
fds.fd = fd;
|
||||
fds.events = POLLIN;
|
||||
if (poll(&fds, 1, timeout) <= 0)
|
||||
return FAIL;
|
||||
# endif
|
||||
#endif
|
||||
return OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user