1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-05 04:36:34 +00:00

Socat failed to compile when no poll() system call was found

This commit is contained in:
Gerhard Rieger 2019-09-08 20:22:50 +02:00
parent 5ebf36038f
commit 72a137c287
3 changed files with 7 additions and 2 deletions

View file

@ -538,8 +538,8 @@ int xiopoll(struct pollfd fds[], unsigned long nfds, struct timeval *timeout) {
}
return result;
}
#if HAVE_POLL
{
#if HAVE_POLL
int ms = 0;
if (timeout == NULL) {
ms = -1;
@ -549,7 +549,6 @@ int xiopoll(struct pollfd fds[], unsigned long nfds, struct timeval *timeout) {
/*! timeout */
return Poll(fds, nfds, ms);
#else /* HAVE_POLL */
} else {
Error("poll() not available");
return -1;
#endif /* !HAVE_POLL */