Fix QNX build

This commit is contained in:
cpq committed 2021-03-04 11:09:57 +00:00
1 parent 374ab4ecf0
commit 79e5841483
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2837,7 +2837,7 @@ static void setsockopts(struct mg_connection *c) {
int idle = 60; int idle = 60;
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle)); setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle));
#endif #endif
#ifndef _WIN32 #if !defined(_WIN32) && !defined(__QNX__)
{ {
int cnt = 3, intvl = 20; int cnt = 3, intvl = 20;
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(cnt)); 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; int idle = 60;
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle)); setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle));
#endif #endif
#ifndef _WIN32 #if !defined(_WIN32) && !defined(__QNX__)
{ {
int cnt = 3, intvl = 20; int cnt = 3, intvl = 20;
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(cnt)); setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(cnt));