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:
parent
5ebf36038f
commit
72a137c287
3 changed files with 7 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue