Skip to content
Snippets Groups Projects
Commit d87c91dd authored by deuce's avatar deuce
Browse files

Linux does not define INFTIME in poll.h

parent fc33771d
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ void spyon(char *sockname) {
pset[1].fd=spy_sock;
pset[1].events=POLLIN;
while(spy_sock!=INVALID_SOCKET) {
if((poll(pset,2,INFTIM))<0) {
if((poll(pset,2,-1))<0) {
close(spy_sock);
spy_sock=INVALID_SOCKET;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment