xcb_in.c #ifndef _WIN32 inside of #if USE_POLL redundant and removed
This commit is contained in:
parent
e8009194c9
commit
0e0c80e749
|
@ -286,7 +286,6 @@ static int read_block(const int fd, void *buf, const ssize_t len)
|
||||||
#endif /* !_Win32 */
|
#endif /* !_Win32 */
|
||||||
{
|
{
|
||||||
#if USE_POLL
|
#if USE_POLL
|
||||||
#ifndef _WIN32
|
|
||||||
struct pollfd pfd;
|
struct pollfd pfd;
|
||||||
pfd.fd = fd;
|
pfd.fd = fd;
|
||||||
pfd.events = POLLIN;
|
pfd.events = POLLIN;
|
||||||
|
@ -294,7 +293,6 @@ static int read_block(const int fd, void *buf, const ssize_t len)
|
||||||
do {
|
do {
|
||||||
ret = poll(&pfd, 1, -1);
|
ret = poll(&pfd, 1, -1);
|
||||||
} while (ret == -1 && errno == EINTR);
|
} while (ret == -1 && errno == EINTR);
|
||||||
#endif /* !_WIN32 */
|
|
||||||
#else
|
#else
|
||||||
fd_set fds;
|
fd_set fds;
|
||||||
FD_ZERO(&fds);
|
FD_ZERO(&fds);
|
||||||
|
|
Loading…
Reference in New Issue