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