remove warning for crippled operating systems

master
leitner 9 years ago
parent 3872474e17
commit 79cc92ec6f

@ -20,5 +20,8 @@ void socket_deferaccept(int s,enum defermode mode) {
memset(&afa,0,sizeof(afa)); memset(&afa,0,sizeof(afa));
strcpy(afa.af_name,mode==HTTPIN?"httpreader":"dataready"); strcpy(afa.af_name,mode==HTTPIN?"httpreader":"dataready");
setsockopt(s, SOL_SOCKET, SO_ACCEPTFILTER, &afa, sizeof(afa)); setsockopt(s, SOL_SOCKET, SO_ACCEPTFILTER, &afa, sizeof(afa));
#else
(void)s;
(void)mode;
#endif #endif
} }

Loading…
Cancel
Save