diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-12-30 19:58:45 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-12-30 19:58:48 +0100 |
commit | d364884471614988e500e2d5412f7aeac00eb9d2 (patch) | |
tree | b8c7fb738050de5d01ad6d00730ee793b34bd394 /listen.c | |
parent | 30fff08a44094df9b775f2e4bf9f5abceb847415 (diff) |
fix compile errors
Diffstat (limited to 'listen.c')
-rw-r--r-- | listen.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,7 +19,7 @@ #include <sys/types.h> #include <sys/socket.h> - +#include <netinet/tcp.h> #include <netdb.h> #include "uhttpd.h" @@ -124,7 +124,7 @@ int uh_socket_bind(const char *host, const char *port, bool tls) tcp_ka_idl = 1; tcp_ka_cnt = 3; - tcp_ka_int = conf->tcp_keepalive; + tcp_ka_int = conf.tcp_keepalive; ret = setsockopt(sock, SOL_TCP, TCP_KEEPIDLE, &tcp_ka_idl, sizeof(tcp_ka_idl)) || setsockopt(sock, SOL_TCP, TCP_KEEPINTVL, &tcp_ka_int, sizeof(tcp_ka_int)) || setsockopt(sock, SOL_TCP, TCP_KEEPCNT, &tcp_ka_cnt, sizeof(tcp_ka_cnt)); |