This commit is contained in:
Thulinma 2010-11-08 21:46:38 +01:00
parent e80b413381
commit f21ec7e2f2

View file

@ -98,7 +98,7 @@ bool DDV_ready(int sock){
} }
int DDV_readycount(int sock){ int DDV_readycount(int sock){
static tmp[1048576]; static char tmp[1048576];
int preflags = fcntl(sock, F_GETFL, 0); int preflags = fcntl(sock, F_GETFL, 0);
int postflags = preflags | O_NONBLOCK; int postflags = preflags | O_NONBLOCK;
fcntl(sock, F_SETFL, postflags); fcntl(sock, F_SETFL, postflags);