Fix QNX build

This commit is contained in:
cpq
2021-03-04 11:09:57 +00:00
parent 374ab4ecf0
commit 79e5841483
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2837,7 +2837,7 @@ static void setsockopts(struct mg_connection *c) {
int idle = 60;
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle));
#endif
#ifndef _WIN32
#if !defined(_WIN32) && !defined(__QNX__)
{
int cnt = 3, intvl = 20;
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(cnt));
+1 -1
View File
@@ -303,7 +303,7 @@ static void setsockopts(struct mg_connection *c) {
int idle = 60;
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle));
#endif
#ifndef _WIN32
#if !defined(_WIN32) && !defined(__QNX__)
{
int cnt = 3, intvl = 20;
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(cnt));