0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 7.4.1193

Problem:    Can't build the channel feature on MS-Windows.
Solution:   Add #ifdef HAVE_POLL.
This commit is contained in:
Bram Moolenaar
2016-01-28 23:01:49 +01:00
parent fa06a517b5
commit b8b6511fc1
2 changed files with 4 additions and 0 deletions

View File

@@ -726,12 +726,14 @@ channel_wait(int fd, int timeout)
break; break;
} }
#else #else
# ifdef HAVE_POLL
struct pollfd fds; struct pollfd fds;
fds.fd = fd; fds.fd = fd;
fds.events = POLLIN; fds.events = POLLIN;
if (poll(&fds, 1, timeout) <= 0) if (poll(&fds, 1, timeout) <= 0)
return FAIL; return FAIL;
# endif
#endif #endif
return OK; return OK;
} }

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1193,
/**/ /**/
1192, 1192,
/**/ /**/