Fix build on FreeBSD by spelling "sockin" correctly.

This has been outstanding for a long time.
This commit is contained in:
Emil Mikulic 2006-07-21 07:13:21 +00:00
parent 6c1922391f
commit 42833fb312

View File

@ -871,7 +871,7 @@ static void init_sockin(void)
{
#if defined(__FreeBSD__)
struct accept_filter_arg filt = {"httpready", ""};
if (setsockopt(sock, SOL_SOCKET, SO_ACCEPTFILTER,
if (setsockopt(sockin, SOL_SOCKET, SO_ACCEPTFILTER,
&filt, sizeof(filt)) == -1)
fprintf(stderr, "cannot enable acceptfilter: %s\n",
strerror(errno));