remove warning for crippled operating systems

This commit is contained in:
leitner 2016-05-23 09:46:05 +00:00
parent 3872474e17
commit 79cc92ec6f

View File

@ -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
} }