diff --git a/socket/socket_deferaccept.c b/socket/socket_deferaccept.c index 1f150db..3c33f99 100644 --- a/socket/socket_deferaccept.c +++ b/socket/socket_deferaccept.c @@ -9,6 +9,7 @@ void socket_deferaccept(int s,enum defermode mode) { #ifdef TCP_DEFER_ACCEPT int one=1; + (void)mode; setsockopt(s,IPPROTO_TCP,TCP_DEFER_ACCEPT,&one,sizeof(one)); #elif defined(SO_ACCEPTFILTER) struct accept_filter_arg afa;