1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-11 06:22:58 +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

@ -144,6 +144,7 @@ int filan_fd(int fd, FILE *outfile) {
|POLLMSG
#endif
;
#if HAVE_POLL
if (Poll(&ufds, 1, 0) < 0) {
Warn4("poll({%d, %hd, %hd}, 1, 0): %s",
ufds.fd, ufds.events, ufds.revents, strerror(errno));
@ -200,6 +201,7 @@ int filan_fd(int fd, FILE *outfile) {
}
#endif /* _WITH_SOCKET && defined(MSG_DONTWAIT) */
}
#endif /* HAVE_POLL */
}
}
fputc('\n', outfile);